diff options
-rw-r--r-- | kmix/dialogselectmaster.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/kmix/dialogselectmaster.cpp b/kmix/dialogselectmaster.cpp index 7dbd9d13..9b568f80 100644 --- a/kmix/dialogselectmaster.cpp +++ b/kmix/dialogselectmaster.cpp @@ -114,12 +114,15 @@ void DialogSelectMaster::show(Mixer *curr_mixer) } masterSelectionChanged(0); - for (Mixer *mixer = Mixer::mixers().first(); mixer; mixer = Mixer::mixers().next()) + if (Mixer::mixers().count() > 1) { - if (curr_mixer == mixer) - { - m_cMixer->setCurrentItem(mixer->mixerName()); - } + for (Mixer *mixer = Mixer::mixers().first(); mixer; mixer = Mixer::mixers().next()) + { + if (curr_mixer == mixer) + { + m_cMixer->setCurrentItem(mixer->mixerName()); + } + } } createPage(curr_mixer); |