Summary: | insert special character crashes when closing that dialog | ||
---|---|---|---|
Product: | kword | Reporter: | Marek <spec> |
Component: | general | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Slackware | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Marek
2002-12-17 15:37:25 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; } |