[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kspell
From:       Ravikiran Rajagopal <ravi () ee ! eng ! ohio-state ! edu>
Date:       2003-03-25 2:19:11
[Download RAW message or body]

CVS commit by ravi: 

Fix longstanding bug 34049. If, for some reason, the current dictionary is deleted, \
there is no reason not to let the user choose from the remaining one, if there are \
any.

Index: ksconfig.cpp
===================================================================
RCS file: /home/kde/kdelibs/kspell/ksconfig.cpp,v
retrieving revision 1.71
diff -u -p -r1.71 ksconfig.cpp
--- ksconfig.cpp        28 Feb 2003 01:26:21 -0000      1.71
+++ ksconfig.cpp        25 Mar 2003 02:16:28 -0000
@@ -387,7 +387,14 @@ KSpellConfig::fillInDialog ()
        dictcombo->setCurrentItem(whichelement);
     }
   else
-    setDictFromList (FALSE);
+    // Current dictionary vanished, present the user with a default if possible.
+    if (langfnames.count()>=1)
+    {
+      setDictFromList (TRUE);
+      dictcombo->setCurrentItem(0);
+    }
+    else
+      setDictFromList (FALSE);

   sDictionary (dictFromList());
   sPathDictionary (!dictFromList());

CCMAIL:34049-done@bugs.kde.org


  M +10 -3     ksconfig.cpp   1.72


--- kdelibs/kspell/ksconfig.cpp  #1.71:1.72
@@ -388,4 +388,11 @@ KSpellConfig::fillInDialog ()
     }
   else
+    // Current dictionary vanished, present the user with a default if possible.
+    if (langfnames.count()>=1)
+    {
+      setDictFromList (TRUE);
+      dictcombo->setCurrentItem(0);
+    }
+    else
     setDictFromList (FALSE);
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic