diff options
author | Tim E. Real <termtech@rogers.com> | 2010-12-26 07:49:22 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-12-26 07:49:22 +0000 |
commit | e58e08ef52d764ad3e454763f6660da57ae4978f (patch) | |
tree | 355a308f2fbc32677258df726d76010cc1592114 /muse2/muse/widgets/lcombo.cpp | |
parent | da07df1a7b1f28571a4b4b47b44063cea4a58624 (diff) |
Initial addition of midi track info to pianoroll. WORK IN PROGRESS.
Diffstat (limited to 'muse2/muse/widgets/lcombo.cpp')
-rw-r--r-- | muse2/muse/widgets/lcombo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/muse2/muse/widgets/lcombo.cpp b/muse2/muse/widgets/lcombo.cpp index 15cf6266..e4bdf00c 100644 --- a/muse2/muse/widgets/lcombo.cpp +++ b/muse2/muse/widgets/lcombo.cpp @@ -44,6 +44,8 @@ void LabelCombo::setCurrentIndex(int i) int c = i / rc; if(c >= box->model()->columnCount()) return; - box->setModelColumn(c); - box->setCurrentIndex(r); + if(box->modelColumn() != c) + box->setModelColumn(c); + if(box->currentIndex() != r) + box->setCurrentIndex(r); } |