Bug 52025 - insert special character crashes when closing that dialog
Summary: insert special character crashes when closing that dialog
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-17 15:37 UTC by Marek
Modified: 2004-05-17 21:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek 2002-12-17 15:37:25 UTC
Version:           1.2.1 (Using KDE 3.1.0 (RC5)) (using KDE KDE 3.0.99)
Installed from:    Slackware Packages
Compiler:          gcc 3.2 
OS:          Linux

this is slackware-current
with kde 3.1 rc5 and koffice 1.2.1


to reproduce:
start kword 
at Choose dialog choose start with an empty document and click ok
go to Insert -> Special character
in Select Character dialog choose any character (like 
Comment 1 David Faure 2002-12-24 16:16:55 UTC
Subject: KOFFICE_1_2_BRANCH: koffice/kword

CVS commit by faure: 

Backport fix from 1.922, when closing the "insert special char" dialog.
CCMAIL: 52025-done@bugs.kde.org


  M +5 -8      kwview.cc   1.822.2.6


--- koffice/kword/kwview.cc  #1.822.2.5:1.822.2.6
@@ -252,10 +252,4 @@ KWView::~KWView()
 {
     clearSelection();
-    //delete special char dlg when we close view
-    if ( m_specialCharDlg )
-    {
-        m_specialCharDlg->closeDialog();
-    }
-
     if ( m_findReplace )
     {
@@ -323,6 +317,9 @@ void KWView::clearSelection()
     }
     delete m_searchEntry;
+    m_searchEntry = 0L;
     delete m_replaceEntry;
-    delete m_specialCharDlg;
+    m_replaceEntry = 0L;
+    if ( m_specialCharDlg )
+        m_specialCharDlg->closeDialog(); // will call slotSpecialCharDlgClosed
 }
 
@@ -3080,5 +3077,5 @@ void KWView::slotSpecialCharDlgClosed()
         disconnect( m_specialCharDlg, SIGNAL( finished() ),
                     this, SLOT( slotSpecialCharDlgClosed() ) );
-        delete m_specialCharDlg;
+        m_specialCharDlg->deleteLater();
         m_specialCharDlg = 0L;
     }