diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-11 23:38:21 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-11 23:38:21 +0800 |
commit | 59304aa1b2c6d278e76f72509183fee96bbb8cae (patch) | |
tree | ad50b86aaf71497588372de7089ff71b05b00a7b /qmidiplayer-desktop/qmpchanneleditor.cpp | |
parent | d4c66cbcfb1411312b2c2f3c83e76a4882b8577a (diff) | |
download | QMidiPlayer-59304aa1b2c6d278e76f72509183fee96bbb8cae.tar.xz |
Fixed a crash caused by the visualization plugin.
Fixed a bug when piano is hidden but the option "arrange
channels on a stair" is enabled.
Add channel label display. However it's still buggy so it's
currently disabled.
Diffstat (limited to 'qmidiplayer-desktop/qmpchanneleditor.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchanneleditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpchanneleditor.cpp b/qmidiplayer-desktop/qmpchanneleditor.cpp index 9b61e64..206a2fa 100644 --- a/qmidiplayer-desktop/qmpchanneleditor.cpp +++ b/qmidiplayer-desktop/qmpchanneleditor.cpp @@ -28,8 +28,8 @@ void qmpChannelEditor::setupWindow(int chid) int b,p; player->getChannelPreset(ch,&b,&p,str); ui->lbPresetName->setText(str); - sprintf(str,"BK: %d",b);ui->lbBank->setText(str); - sprintf(str,"PC: %d",p);ui->lbPreset->setText(str); + sprintf(str,"BK: %03d",b);ui->lbBank->setText(str); + sprintf(str,"PC: %03d",p);ui->lbPreset->setText(str); ui->lbChannelNumber->setText(QString::number(ch+1)); #define setupControl(ccid,lb,d,ccname)\ b=player->getCC(ch,ccid);\ |