From 710f9d6272b6964496da3d9d57a55da4e2c8e07d Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 21 Sep 2010 22:56:50 +0000 Subject: Fix log messages git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1177996 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- filesharing/advanced/kcm_sambaconf/dictmanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'filesharing/advanced') 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); + } } } -- cgit v1.2.1