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

List:       kwrite-devel
Subject:    [Bug 99842] kwrite crashes when accepting the find dialog
From:       Leo Savernik <l.savernik () aon ! at>
Date:       2005-03-21 18:02:10
Message-ID: 20050321180210.10508.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=99842         




------- Additional Comments From l.savernik aon at  2005-03-21 19:02 -------
CVS commit by savernik: 

Fixed nasty crash on accepting Find and Replace dialogs.

Forward port.
CCBUGS: 99842


  M +4 -2      katesearch.cpp   1.89


--- kdelibs/kate/part/katesearch.cpp  #1.88:1.89
 @ -104,5 +104,6  @ void KateSearch::find()
   if( findDialog->exec() == QDialog::Accepted ) {
     s_searchList =  findDialog->findHistory () ;
-    find( s_searchList.first(), findDialog->options(), true, true );
+    // Do *not* remove the QString() wrapping, it fixes a nasty crash
+    find( QString(s_searchList.first()), findDialog->options(), true, true );
   }
 
 @ -168,5 +169,6  @ void KateSearch::replace()
     s_replaceList = replaceDialog->replacementHistory () ;
 
-    replace( s_searchList.first(), m_replacement, opts );
+    // Do *not* remove the QString() wrapping, it fixes a nasty crash
+    replace( QString(s_searchList.first()), m_replacement, opts );
   }
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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