summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/dictmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/dictmanager.cpp')
-rw-r--r--filesharing/advanced/kcm_sambaconf/dictmanager.cpp6
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 : janschaefer@users.sourceforge.net
***************************************************************************/
@@ -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);
+ }
}
}