From 59304aa1b2c6d278e76f72509183fee96bbb8cae Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 11 May 2016 23:38:21 +0800 Subject: 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. --- qmidiplayer-desktop/qmpchanneleditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qmidiplayer-desktop/qmpchanneleditor.cpp') 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);\ -- cgit v1.2.3