From e58e08ef52d764ad3e454763f6660da57ae4978f Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Sun, 26 Dec 2010 07:49:22 +0000 Subject: Initial addition of midi track info to pianoroll. WORK IN PROGRESS. --- muse2/muse/widgets/lcombo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'muse2/muse/widgets/lcombo.cpp') 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); } -- cgit v1.2.3