Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the "Empty project" message and allow exporting empty projects. #4031

Merged
merged 1 commit into from Dec 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/core/Song.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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 );
Expand Down