Merge pull request #1737 from Spekular/PVFix

Fix project version check on preset load.
This commit is contained in:
Tres Finocchiaro
2015-02-03 15:43:49 -05:00

View File

@@ -804,7 +804,7 @@ void DataFile::loadData( const QByteArray & _data, const QString & _sourceFile )
// only one compareType needs to be set, and we can compare on one line because setCompareType returns ProjectVersion
if ( createdWith.setCompareType(Minor) != openedWith)
{
if( Engine::hasGUI() )
if( Engine::hasGUI() && root.attribute( "type" ) == "song" ) //documentElement()
{
QMessageBox::information( NULL,
SongEditor::tr( "Project Version Mismatch" ),