Skip to content

Commit

Permalink
Fix project version check on preset load.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spekular authored and mohamed--abdel-maksoud committed Feb 3, 2015
1 parent ce4a037 commit d6349c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/DataFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ),
Expand Down

0 comments on commit d6349c3

Please sign in to comment.