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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/widgets
From:       Darío Andrés Rodríguez <andresbajotierra () gmail ! co
Date:       2009-05-13 3:41:08
Message-ID: 1242186068.445634.15292.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 967261 by darioandres:

Do not call the find/findNext/replace actions when their shortcuts are pressed
but the findReplaceEnabled option was explicity disabled

BUG: 192529


 M  +5 -3      ktextedit.cpp  


--- trunk/KDE/kdelibs/kdeui/widgets/ktextedit.cpp #967260:967261
@@ -394,13 +394,15 @@
     parent->setTextCursor( cursor );
     return true;
   } else if (KStandardShortcut::find().contains(key)) {
-      parent->slotFind();
+      if (findReplaceEnabled)
+          parent->slotFind();
       return true;
   } else if (KStandardShortcut::findNext().contains(key)) {
-      parent->slotFindNext();
+      if (findReplaceEnabled)
+          parent->slotFindNext();
       return true;
   } else if (KStandardShortcut::replace().contains(key)) {
-      if( !parent->isReadOnly() )
+      if (!parent->isReadOnly() && findReplaceEnabled)
           parent->slotReplace();
       return true;
   } else if ( KStandardShortcut::pasteSelection().contains( key ) ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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