Allow exporting empty projects.
This commit is contained in:
@@ -1312,16 +1312,6 @@ void Song::exportProjectTracks()
|
||||
|
||||
void Song::exportProject( bool multiExport )
|
||||
{
|
||||
if( isEmpty() )
|
||||
{
|
||||
QMessageBox::information( gui->mainWindow(),
|
||||
tr( "Empty project" ),
|
||||
tr( "This project is empty so exporting makes "
|
||||
"no sense. Please put some items into "
|
||||
"Song Editor first!" ) );
|
||||
return;
|
||||
}
|
||||
|
||||
FileDialog efd( gui->mainWindow() );
|
||||
|
||||
if ( multiExport )
|
||||
@@ -1400,16 +1390,6 @@ void Song::exportProject( bool multiExport )
|
||||
|
||||
void Song::exportProjectMidi()
|
||||
{
|
||||
if( isEmpty() )
|
||||
{
|
||||
QMessageBox::information( gui->mainWindow(),
|
||||
tr( "Empty project" ),
|
||||
tr( "This project is empty so exporting makes "
|
||||
"no sense. Please put some items into "
|
||||
"Song Editor first!" ) );
|
||||
return;
|
||||
}
|
||||
|
||||
FileDialog efd( gui->mainWindow() );
|
||||
|
||||
efd.setFileMode( FileDialog::AnyFile );
|
||||
|
||||
Reference in New Issue
Block a user