author | paule <paule> | 2007-01-13 07:23:35 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-13 07:23:35 (UTC) |
commit | 80d1934bbbfaea40ee08cf6be738c6517de9477c (patch) (side-by-side diff) | |
tree | 58b8f41630b3ad81422c9b47fd0ef1fc0967a8c0 | |
parent | bccf96bb5b516d05df54dbcee8b8402ded815ed4 (diff) | |
download | opie-80d1934bbbfaea40ee08cf6be738c6517de9477c.zip opie-80d1934bbbfaea40ee08cf6be738c6517de9477c.tar.gz opie-80d1934bbbfaea40ee08cf6be738c6517de9477c.tar.bz2 |
Delete configuration dialog object on closing
-rw-r--r-- | noncore/apps/tinykate/libkate/view/kateview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/tinykate/libkate/view/kateview.cpp b/noncore/apps/tinykate/libkate/view/kateview.cpp index c5673a5..b9ebb1a 100644 --- a/noncore/apps/tinykate/libkate/view/kateview.cpp +++ b/noncore/apps/tinykate/libkate/view/kateview.cpp @@ -2321,49 +2321,50 @@ void KateView::configDialog() hlManager->getHlDataList(hlDataList); page=kd->addPage(i18n("Highlighting")); (new QVBoxLayout(page))->setAutoAdd(true); hlPage = new HighlightDialogPage(hlManager, &defaultStyleList, &hlDataList, 0, page); if ( QPEApplication::execDialog( kd )) { // color options colorConfig->getColors(colors); myDoc->setFont (fontConfig->getFont()); applyColors(); // indent options indentConfig->getData(this); // select options selectConfig->getData(this); // edit options editConfig->getData(this); // spell checker hlManager->setHlDataList(hlDataList); hlManager->setDefaults(defaultStyleList); hlPage->saveData(); } -// delete kd; + qApp->processEvents(); + delete kd; #endif } int KateView::getHl() { return myDoc->highlightNum(); } void KateView::setDontChangeHlOnSave() { myDoc->setDontChangeHlOnSave(); } void KateView::setHl(int n) { myDoc->setHighlight(n); myDoc->setDontChangeHlOnSave(); myDoc->updateViews(); } int KateView::getEol() { return myDoc->eolMode; } void KateView::setEol(int eol) { |