Diff of /trunk/rosegarden/src/gui/editors/parameters/TrackParameterBox.cpp [r13117] .. [r13118] Maximize Restore

  Switch to side-by-side view

--- a/trunk/rosegarden/src/gui/editors/parameters/TrackParameterBox.cpp
+++ b/trunk/rosegarden/src/gui/editors/parameters/TrackParameterBox.cpp
@@ -709,7 +709,7 @@
     Track *trk = comp.getTrackById(m_selectedTrackId);
 
     m_defClef->setCurrentIndex(trk->getClef());
-    m_defTranspose->setItemText(m_defTranspose->currentIndex(), QString("%1").arg(trk->getTranspose()));
+    m_defTranspose->setCurrentIndex(m_defTranspose->findText(QString("%1").arg(trk->getTranspose())));
     m_defColor->setCurrentIndex(trk->getColor());
     m_highestPlayable = trk->getHighestPlayable();
     m_lowestPlayable = trk->getLowestPlayable();
@@ -1183,12 +1183,8 @@
                 CommandHistory::getInstance()->addCommand(command);
             }
             m_defClef->setCurrentIndex(dialog.getClef());
-//             m_defTranspose->setCurrentIndex(QString("%1").arg
-//                     (dialog.getTranspose()), true);
-
                      
-            m_defTranspose->setItemText(m_defTranspose->currentIndex(), QString("%1").arg
-                    (dialog.getTranspose()));
+            m_defTranspose->setCurrentIndex(m_defTranspose->findText(QString("%1").arg(dialog.getTranspose())));
 
             m_highestPlayable = dialog.getHighRange();
             m_lowestPlayable = dialog.getLowRange();