Merge pull request #1671 from curlymorphic/i1634

fix for 1668 now checks if safe to load song
This commit is contained in:
Tres Finocchiaro
2015-01-22 13:52:56 -05:00

View File

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