[Bug 60770] Crash in ~QIconView - when doing find next

Jens Dagerbo jens.dagerbo at swipnet.se
Thu Nov 6 22:20:06 UTC 2003


------- 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=60770     
jens.dagerbo at swipnet.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jens.dagerbo at swipnet.se  2003-11-06 22:19 -------
Subject: kdevelop/editors/qeditor

CVS commit by dagerbo: 

If there is already a find or replace in progress when a new is started, close the first.

CCMAIL: 60770-done at bugs.kde.org


  M +11 -1     qeditor_view.cpp   1.48


--- kdevelop/editors/qeditor/qeditor_view.cpp  #1.47:1.48
@@ -477,4 +477,9 @@ void QEditorView::doFind()
     if( m_findDialog->exec() ){
         m_options = m_findDialog->options();
+                if ( m_find )
+                {
+                        m_find->abort();
+                        delete m_find;
+                }
         m_find = new KoFind( m_findDialog->pattern(), m_findDialog->options() );
         connect( m_find, SIGNAL(highlight(const QString&,int,int,const QRect&)),
@@ -492,4 +497,9 @@ void QEditorView::doReplace()
     if( m_replaceDialog->exec() ){
         m_options = m_replaceDialog->options();
+                if ( m_replace )
+                {
+                        m_replace->abort();
+                        delete m_replace;
+                }
         m_replace = new KoReplace( m_replaceDialog->pattern(), m_replaceDialog->replacement(),
                                    m_replaceDialog->options() );




More information about the KDevelop-devel mailing list