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

List:       kde-commits
Subject:    kdeextragear-2/kimdaba
From:       Jesper Pedersen <blackie () blackie ! dk>
Date:       2005-04-07 17:22:47
Message-ID: 20050407172247.2704A3C3 () office ! kde ! org
[Download RAW message or body]

CVS commit by blackie: 

yet another problem with & being added to check boxes fixed - this time for remove tokens


  M +4 -0      ChangeLog   1.168
  M +2 -1      tokeneditor.cpp   1.4


--- kdeextragear-2/kimdaba/ChangeLog  #1.167:1.168
@@ -1,2 +1,6 @@
+2005-04-07  Jesper K. Pedersen  <blackie@klaralvdalens-datakonsult.se>
+
+        * BUGFIX: remove tokens didn't work for KDE 3.4
+
 2005-04-03  Jesper K. Pedersen  <blackie@klaralvdalens-datakonsult.se>
 

--- kdeextragear-2/kimdaba/tokeneditor.cpp  #1.3:1.4
@@ -83,5 +83,6 @@ void TokenEditor::slotOk()
     for( QValueList<QCheckBox*>::Iterator it = _cbs.begin(); it != _cbs.end(); ++it ) {
         if ( (*it)->isChecked() && (*it)->isEnabled() ) {
-            Options::instance()->removeOption( QString::fromLatin1( "Tokens" ), (*it)->text() );
+            QString txt = (*it)->text().remove( QString::fromLatin1("&") );
+            Options::instance()->removeOption( QString::fromLatin1( "Tokens" ), txt );
         }
     }


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

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