diff options
Diffstat (limited to 'filesharing')
-rw-r--r-- | filesharing/advanced/kcm_sambaconf/dictmanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp index c2437f04..04eb0be7 100644 --- a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp +++ b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp @@ -2,7 +2,7 @@ dictmanager.cpp - description ------------------- begin : Wed Jan 1 2003 - copyright : (C) 2003 by Jan Sch�fer + copyright : (C) 2003 by Jan Sch�fer email : [email protected] ***************************************************************************/ @@ -164,7 +164,9 @@ void DictManager::loadComboBoxes(SambaShare* share, bool globalValue, bool defau comboIndex++; } - comboBoxIt.current()->setCurrentItem(comboIndex); + if (comboIndex < comboBoxIt.current()->count()) { + comboBoxIt.current()->setCurrentItem(comboIndex); + } } } |