Skip to content

Commit

Permalink
Merge pull request #3053 from Jojo-Schmitz/metaedit
Browse files Browse the repository at this point in the history
fix #152206: programRevision is not shown in Score Properties dialog for score from 2.0 and later
  • Loading branch information
lasconic committed Mar 15, 2017
2 parents f08d349 + 4f79b44 commit 72ab8cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
9 changes: 4 additions & 5 deletions mscore/metaedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ MetaEditDialog::MetaEditDialog(Score* s, QWidget* parent)
level->setValue(score->mscVersion());
version->setText(score->mscoreVersion());
int rev = score->mscoreRevision();
if (rev > 99999) { // MuseScore 1.3 is 5702, 2.0 uses a 7-digit hex SHA
revision->setDisplayIntegerBase(16);
revision->setMaximum(0xfffffff);
}
revision->setValue(rev);
if (rev > 99999) // MuseScore 1.3 is decimal 5702, 2.0 and later uses a 7-digit hex SHA
revision->setText(QString::number(rev, 16));
else
revision->setText(QString::number(rev, 10));
filePath->setText(score->importedFilePath());

int idx = 0;
Expand Down
8 changes: 1 addition & 7 deletions mscore/metaedit.ui
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,13 @@
</widget>
</item>
<item row="1" column="3">
<widget class="QSpinBox" name="revision">
<widget class="QLineEdit" name="revision">
<property name="enabled">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="maximum">
<number>99999</number>
</property>
</widget>
</item>
<item row="1" column="2">
Expand Down

0 comments on commit 72ab8cb

Please sign in to comment.