fix for 1668 now checks if save to load song

This commit is contained in:
Dave French
2015-01-22 18:31:09 +00:00
parent 9460fdec9b
commit 3db3711dcf

View File

@@ -45,6 +45,7 @@
#include "Song.h"
#include "StringPairDrag.h"
#include "Track.h"
#include "GuiApplication.h"
TrackContainerView::TrackContainerView( TrackContainer * _tc ) :
@@ -363,7 +364,10 @@ void TrackContainerView::dropEvent( QDropEvent * _de )
else if( type == "projectfile")
{
Engine::getSong()->loadProject( value );
if( gui->mainWindow()->mayChangeProject() )
{
Engine::getSong()->loadProject( value );
}
_de->accept();
}