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
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; }