mirror of
https://github.com/LMMS/lmms.git
synced 2026-02-05 12:13:40 -05:00
fix for 1668 now checks if save to load song
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user