summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/lcombo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/widgets/lcombo.cpp')
-rw-r--r--muse2/muse/widgets/lcombo.cpp6
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);
}