diff --git a/src/frontends/Dialogs.cpp b/src/frontends/Dialogs.cpp index 5fb70c4587..514fb4f9ea 100644 --- a/src/frontends/Dialogs.cpp +++ b/src/frontends/Dialogs.cpp @@ -184,7 +184,7 @@ void Dialogs::updateBufferDependent(bool switched) const // A bit clunky, but the dialog will request // that the kernel provides it with the necessary // data. - dialog->RestoreButton(); + dialog->slotRestore(); } } } diff --git a/src/frontends/controllers/ControlSpellchecker.cpp b/src/frontends/controllers/ControlSpellchecker.cpp index 1f059ac105..42e8897b0e 100644 --- a/src/frontends/controllers/ControlSpellchecker.cpp +++ b/src/frontends/controllers/ControlSpellchecker.cpp @@ -60,18 +60,18 @@ namespace frontend { ControlSpellchecker::ControlSpellchecker(Dialog & parent) : Controller(parent), exitEarly_(false), - oldval_(0), newvalue_(0), count_(0) + oldval_(0), newvalue_(0), count_(0), speller_(0) { } ControlSpellchecker::~ControlSpellchecker() -{} +{ + delete speller_; +} -namespace { - -SpellBase * getSpeller(BufferParams const & bp) +static SpellBase * getSpeller(BufferParams const & bp) { string lang = (lyxrc.isp_use_alt_lang) ? lyxrc.isp_alt_lang @@ -86,7 +86,7 @@ SpellBase * getSpeller(BufferParams const & bp) #endif #if defined(USE_ISPELL) - lang = (lyxrc.isp_use_alt_lang) ? + lang = lyxrc.isp_use_alt_lang ? lyxrc.isp_alt_lang : bp.language->lang(); return new ISpell(bp, lang); @@ -95,15 +95,13 @@ SpellBase * getSpeller(BufferParams const & bp) #endif } -} // namespace anon - bool ControlSpellchecker::initialiseParams(std::string const &) { LYXERR(Debug::GUI) << "Spellchecker::initialiseParams" << endl; - speller_.reset(getSpeller(buffer().params())); - if (!speller_.get()) + speller_ = getSpeller(buffer().params()); + if (!speller_) return false; // reset values to initial @@ -117,7 +115,8 @@ bool ControlSpellchecker::initialiseParams(std::string const &) Alert::error(_("Spellchecker error"), _("The spellchecker could not be started\n") + speller_->error()); - speller_.reset(0); + delete speller_; + speller_ = 0; } return success; @@ -127,26 +126,25 @@ bool ControlSpellchecker::initialiseParams(std::string const &) void ControlSpellchecker::clearParams() { LYXERR(Debug::GUI) << "Spellchecker::clearParams" << endl; - speller_.reset(0); + delete speller_; + speller_ = 0; } -namespace { - -bool isLetter(DocIterator const & dit) +static bool isLetter(DocIterator const & dit) { return dit.inTexted() && dit.inset().allowSpellCheck() && dit.pos() != dit.lastpos() && (dit.paragraph().isLetter(dit.pos()) // We want to pass the ' and escape chars to ispell - || contains(lyx::from_utf8(lyxrc.isp_esc_chars + '\''), + || contains(from_utf8(lyxrc.isp_esc_chars + '\''), dit.paragraph().getChar(dit.pos()))) && !dit.paragraph().isDeleted(dit.pos()); } -WordLangTuple nextWord(Cursor & cur, ptrdiff_t & progress) +static WordLangTuple nextWord(Cursor & cur, ptrdiff_t & progress) { BufferParams const & bp = cur.bv().buffer().params(); bool inword = false; @@ -178,8 +176,8 @@ WordLangTuple nextWord(Cursor & cur, ptrdiff_t & progress) if (!word.empty() && !ignoreword) { cur.setSelection(); return WordLangTuple(word, lang_code); - } else - inword = false; + } + inword = false; } cur.forwardPos(); @@ -189,9 +187,6 @@ WordLangTuple nextWord(Cursor & cur, ptrdiff_t & progress) return WordLangTuple(docstring(), string()); } -} // namespace anon - - void ControlSpellchecker::check() { @@ -200,11 +195,11 @@ void ControlSpellchecker::check() SpellBase::Result res = SpellBase::OK; Cursor cur = bufferview()->cursor(); - while (cur && cur.pos() && isLetter(cur)) { + while (cur && cur.pos() && isLetter(cur)) cur.backwardPos(); - } - ptrdiff_t start = 0, total = 0; + ptrdiff_t start = 0; + ptrdiff_t total = 0; DocIterator it = DocIterator(buffer().inset()); for (start = 0; it != cur; it.forwardPos()) ++start; @@ -278,7 +273,7 @@ bool ControlSpellchecker::checkAlive() else message = _("The spellchecker has failed.\n") + speller_->error(); - dialog().CancelButton(); + dialog().slotClose(); Alert::error(_("The spellchecker has failed"), message); return false; @@ -288,7 +283,7 @@ bool ControlSpellchecker::checkAlive() void ControlSpellchecker::showSummary() { if (!checkAlive() || count_ == 0) { - dialog().CancelButton(); + dialog().slotClose(); return; } @@ -298,7 +293,7 @@ void ControlSpellchecker::showSummary() else message = _("One word checked."); - dialog().CancelButton(); + dialog().slotClose(); Alert::information(_("Spelling check completed"), message); } diff --git a/src/frontends/controllers/ControlSpellchecker.h b/src/frontends/controllers/ControlSpellchecker.h index d3caa3a9d0..28e314c518 100644 --- a/src/frontends/controllers/ControlSpellchecker.h +++ b/src/frontends/controllers/ControlSpellchecker.h @@ -14,7 +14,7 @@ #include "Dialog.h" #include "WordLangTuple.h" -#include + namespace lyx { @@ -24,7 +24,8 @@ namespace frontend { /** A controller for Spellchecker dialogs. */ -class ControlSpellchecker : public Controller { +class ControlSpellchecker : public Controller +{ public: enum State { SPELL_PROGRESSED, //< update progress bar @@ -94,7 +95,7 @@ private: int count_; /// The actual spellchecker object - boost::scoped_ptr speller_; + SpellBase * speller_; }; } // namespace frontend diff --git a/src/frontends/controllers/Dialog.h b/src/frontends/controllers/Dialog.h index 78f0de12f0..03095cf2f2 100644 --- a/src/frontends/controllers/Dialog.h +++ b/src/frontends/controllers/Dialog.h @@ -71,10 +71,10 @@ public: virtual void hide() {} // Override in GuiDialog - virtual void OkButton() {} - virtual void ApplyButton() {} - virtual void CancelButton() {} - virtual void RestoreButton() {} + virtual void slotOK() {} + virtual void slotApply() {} + virtual void slotRestore() {} + virtual void slotClose() {} /** This function is called, for example, if the GUI colours * have been changed. diff --git a/src/frontends/qt4/ChangeLog b/src/frontends/qt4/ChangeLog index 1382803c46..50a87b55a3 100644 --- a/src/frontends/qt4/ChangeLog +++ b/src/frontends/qt4/ChangeLog @@ -4510,7 +4510,7 @@ No longer passed ControlButtons & or Dialogs &. (bc): new method, enabling the daughter classes to access the ButtonController. - (slotWMHide): + (slotClose): (slotApply): (slotOK): (slotClose): diff --git a/src/frontends/qt4/GuiBibitem.cpp b/src/frontends/qt4/GuiBibitem.cpp index 746e647edb..812c2299f7 100644 --- a/src/frontends/qt4/GuiBibitem.cpp +++ b/src/frontends/qt4/GuiBibitem.cpp @@ -60,7 +60,7 @@ void GuiBibitemDialog::change_adaptor() void GuiBibitemDialog::closeEvent(QCloseEvent *e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiBibtex.cpp b/src/frontends/qt4/GuiBibtex.cpp index a1dc48751d..a39de142a4 100644 --- a/src/frontends/qt4/GuiBibtex.cpp +++ b/src/frontends/qt4/GuiBibtex.cpp @@ -245,7 +245,7 @@ void GuiBibtexDialog::availableChanged() void GuiBibtexDialog::closeEvent(QCloseEvent *e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index f3ad3787e0..2c70cbdc97 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -120,7 +120,7 @@ ControlBox & GuiBoxDialog::controller() const void GuiBoxDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiBranch.cpp b/src/frontends/qt4/GuiBranch.cpp index 9a41c1cf3a..b687f82a0e 100644 --- a/src/frontends/qt4/GuiBranch.cpp +++ b/src/frontends/qt4/GuiBranch.cpp @@ -51,7 +51,7 @@ ControlBranch & GuiBranchDialog::controller() const void GuiBranchDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiChanges.cpp b/src/frontends/qt4/GuiChanges.cpp index 99e4b4b651..be9edb85da 100644 --- a/src/frontends/qt4/GuiChanges.cpp +++ b/src/frontends/qt4/GuiChanges.cpp @@ -54,7 +54,7 @@ ControlChanges & GuiChangesDialog::controller() const void GuiChangesDialog::closeEvent(QCloseEvent *e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiCharacter.cpp b/src/frontends/qt4/GuiCharacter.cpp index 22ff331027..83da18bb24 100644 --- a/src/frontends/qt4/GuiCharacter.cpp +++ b/src/frontends/qt4/GuiCharacter.cpp @@ -136,7 +136,7 @@ void GuiCharacterDialog::change_adaptor() void GuiCharacterDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiDialog.cpp b/src/frontends/qt4/GuiDialog.cpp index 44c448de7e..095928db53 100644 --- a/src/frontends/qt4/GuiDialog.cpp +++ b/src/frontends/qt4/GuiDialog.cpp @@ -45,14 +45,14 @@ void GuiDialog::setButtonsValid(bool valid) } -void GuiDialog::ApplyButton() +void GuiDialog::slotApply() { apply(); bc().apply(); } -void GuiDialog::OKButton() +void GuiDialog::slotOK() { is_closing_ = true; apply(); @@ -62,14 +62,14 @@ void GuiDialog::OKButton() } -void GuiDialog::CancelButton() +void GuiDialog::slotClose() { QDialog::hide(); bc().cancel(); } -void GuiDialog::RestoreButton() +void GuiDialog::slotRestore() { // Tell the controller that a request to refresh the dialog's contents // has been received. It's up to the controller to supply the necessary @@ -154,36 +154,6 @@ void GuiDialog::changed() } -void GuiDialog::slotWMHide() -{ - CancelButton(); -} - - -void GuiDialog::slotApply() -{ - ApplyButton(); -} - - -void GuiDialog::slotOK() -{ - OKButton(); -} - - -void GuiDialog::slotClose() -{ - CancelButton(); -} - - -void GuiDialog::slotRestore() -{ - RestoreButton(); -} - - void GuiDialog::updateView() { setUpdatesEnabled(false); diff --git a/src/frontends/qt4/GuiDialog.h b/src/frontends/qt4/GuiDialog.h index 42e6b47d22..7eafe75c1a 100644 --- a/src/frontends/qt4/GuiDialog.h +++ b/src/frontends/qt4/GuiDialog.h @@ -36,28 +36,20 @@ public: ~GuiDialog(); public Q_SLOTS: - // dialog closed from WM - void slotWMHide(); + /** \name Buttons + * These methods are publicly accessible because they are invoked + * by the View when the user presses... guess what ;-) + */ // Restore button clicked void slotRestore(); // OK button clicked void slotOK(); // Apply button clicked void slotApply(); - // Close button clicked + // Close button clicked or closed from WindowManager void slotClose(); public: - /** \name Buttons - * These methods are publicly accessible because they are invoked - * by the View when the user presses... guess what ;-) - */ - //@{ - void ApplyButton(); - void OKButton(); - void CancelButton(); - void RestoreButton(); - //@} /** Check whether we may apply our data. * diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 0c5c02763d..6d051e323c 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -682,7 +682,7 @@ void GuiDocumentDialog::set_listings_msg() void GuiDocumentDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiERT.cpp b/src/frontends/qt4/GuiERT.cpp index 8d41adc024..ed3798411b 100644 --- a/src/frontends/qt4/GuiERT.cpp +++ b/src/frontends/qt4/GuiERT.cpp @@ -48,7 +48,7 @@ ControlERT & GuiERTDialog::controller() const void GuiERTDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index 993ef5cebc..ac8ea3df65 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -57,7 +57,7 @@ void GuiErrorListDialog::select_adaptor(QListWidgetItem * item) void GuiErrorListDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiExternal.cpp b/src/frontends/qt4/GuiExternal.cpp index 9544c11918..b5c01e2cd1 100644 --- a/src/frontends/qt4/GuiExternal.cpp +++ b/src/frontends/qt4/GuiExternal.cpp @@ -248,7 +248,7 @@ void GuiExternalDialog::change_adaptor() void GuiExternalDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiFloat.cpp b/src/frontends/qt4/GuiFloat.cpp index f0e3d51c2c..cc1eff1ec1 100644 --- a/src/frontends/qt4/GuiFloat.cpp +++ b/src/frontends/qt4/GuiFloat.cpp @@ -68,7 +68,7 @@ void GuiFloatDialog::change_adaptor() void GuiFloatDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiGraphics.cpp b/src/frontends/qt4/GuiGraphics.cpp index 1deda05c3f..cc58105a84 100644 --- a/src/frontends/qt4/GuiGraphics.cpp +++ b/src/frontends/qt4/GuiGraphics.cpp @@ -234,7 +234,7 @@ void GuiGraphicsDialog::change_bb() void GuiGraphicsDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiInclude.cpp b/src/frontends/qt4/GuiInclude.cpp index 898fbf1d70..a6c3e15539 100644 --- a/src/frontends/qt4/GuiInclude.cpp +++ b/src/frontends/qt4/GuiInclude.cpp @@ -128,7 +128,7 @@ void GuiIncludeDialog::set_listings_msg() void GuiIncludeDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiIndex.cpp b/src/frontends/qt4/GuiIndex.cpp index 02d96f56e7..70059ca659 100644 --- a/src/frontends/qt4/GuiIndex.cpp +++ b/src/frontends/qt4/GuiIndex.cpp @@ -95,7 +95,7 @@ void GuiIndexDialogBase::reject() void GuiIndexDialogBase::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiListings.cpp b/src/frontends/qt4/GuiListings.cpp index a0bf60f310..2ec3b29bc4 100644 --- a/src/frontends/qt4/GuiListings.cpp +++ b/src/frontends/qt4/GuiListings.cpp @@ -253,7 +253,7 @@ ControlListings & GuiListingsDialog::controller() const void GuiListingsDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiLog.cpp b/src/frontends/qt4/GuiLog.cpp index ae7fc9b5f3..c665f77d67 100644 --- a/src/frontends/qt4/GuiLog.cpp +++ b/src/frontends/qt4/GuiLog.cpp @@ -125,7 +125,7 @@ ControlLog & GuiLogDialog::controller() const void GuiLogDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiNomencl.cpp b/src/frontends/qt4/GuiNomencl.cpp index 0ede06c97a..11acc63959 100644 --- a/src/frontends/qt4/GuiNomencl.cpp +++ b/src/frontends/qt4/GuiNomencl.cpp @@ -73,7 +73,7 @@ void GuiNomenclDialog::reject() void GuiNomenclDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiNote.cpp b/src/frontends/qt4/GuiNote.cpp index de73194385..c10ce960d0 100644 --- a/src/frontends/qt4/GuiNote.cpp +++ b/src/frontends/qt4/GuiNote.cpp @@ -50,7 +50,7 @@ ControlNote & GuiNoteDialog::controller() const void GuiNoteDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiParagraph.cpp b/src/frontends/qt4/GuiParagraph.cpp index 6e7c6cefdb..618436fd60 100644 --- a/src/frontends/qt4/GuiParagraph.cpp +++ b/src/frontends/qt4/GuiParagraph.cpp @@ -100,7 +100,7 @@ ControlParagraph & GuiParagraphDialog::controller() const void GuiParagraphDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index a5da7e5b89..709d82dcad 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -1976,7 +1976,7 @@ void GuiPrefsDialog::add(PrefModule * module) void GuiPrefsDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index bf08efcc9c..74e01fd60c 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -181,7 +181,7 @@ void GuiRefDialog::reset_dialog() void GuiRefDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); reset_dialog(); e->accept(); } diff --git a/src/frontends/qt4/GuiSearch.cpp b/src/frontends/qt4/GuiSearch.cpp index 03fb76ba77..938a55aa5b 100644 --- a/src/frontends/qt4/GuiSearch.cpp +++ b/src/frontends/qt4/GuiSearch.cpp @@ -78,7 +78,7 @@ void GuiSearchDialog::showView() void GuiSearchDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiSendto.cpp b/src/frontends/qt4/GuiSendto.cpp index 9e91b1e2ef..8d775237b0 100644 --- a/src/frontends/qt4/GuiSendto.cpp +++ b/src/frontends/qt4/GuiSendto.cpp @@ -69,7 +69,7 @@ void GuiSendtoDialog::changed_adaptor() void GuiSendtoDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiShowFile.cpp b/src/frontends/qt4/GuiShowFile.cpp index c71019d411..821fdb67fc 100644 --- a/src/frontends/qt4/GuiShowFile.cpp +++ b/src/frontends/qt4/GuiShowFile.cpp @@ -45,7 +45,7 @@ ControlShowFile & GuiShowFileDialog::controller() const void GuiShowFileDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiSpellchecker.cpp b/src/frontends/qt4/GuiSpellchecker.cpp index 0ce77452d9..027b397ed4 100644 --- a/src/frontends/qt4/GuiSpellchecker.cpp +++ b/src/frontends/qt4/GuiSpellchecker.cpp @@ -119,14 +119,14 @@ void GuiSpellcheckerDialog::replaceChanged(const QString & str) void GuiSpellcheckerDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } void GuiSpellcheckerDialog::reject() { - slotWMHide(); + slotClose(); QDialog::reject(); } diff --git a/src/frontends/qt4/GuiTabular.cpp b/src/frontends/qt4/GuiTabular.cpp index 66fbd7ba23..68df6cd199 100644 --- a/src/frontends/qt4/GuiTabular.cpp +++ b/src/frontends/qt4/GuiTabular.cpp @@ -162,7 +162,7 @@ void GuiTabularDialog::change_adaptor() void GuiTabularDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiTexinfo.cpp b/src/frontends/qt4/GuiTexinfo.cpp index 6c72efa39a..95220c0156 100644 --- a/src/frontends/qt4/GuiTexinfo.cpp +++ b/src/frontends/qt4/GuiTexinfo.cpp @@ -74,7 +74,7 @@ void GuiTexinfoDialog::change_adaptor() void GuiTexinfoDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiThesaurus.cpp b/src/frontends/qt4/GuiThesaurus.cpp index aab037436b..fd80b5f1f6 100644 --- a/src/frontends/qt4/GuiThesaurus.cpp +++ b/src/frontends/qt4/GuiThesaurus.cpp @@ -77,7 +77,7 @@ void GuiThesaurusDialog::change_adaptor() void GuiThesaurusDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiURL.cpp b/src/frontends/qt4/GuiURL.cpp index 538f4fc086..a9b6e5025e 100644 --- a/src/frontends/qt4/GuiURL.cpp +++ b/src/frontends/qt4/GuiURL.cpp @@ -65,7 +65,7 @@ void GuiURLDialog::changed_adaptor() void GuiURLDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiVSpace.cpp b/src/frontends/qt4/GuiVSpace.cpp index ab5ee959fc..13068b0d0d 100644 --- a/src/frontends/qt4/GuiVSpace.cpp +++ b/src/frontends/qt4/GuiVSpace.cpp @@ -95,7 +95,7 @@ ControlVSpace & GuiVSpaceDialog::controller() const void GuiVSpaceDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); } diff --git a/src/frontends/qt4/GuiWrap.cpp b/src/frontends/qt4/GuiWrap.cpp index d707445e82..997fdf181e 100644 --- a/src/frontends/qt4/GuiWrap.cpp +++ b/src/frontends/qt4/GuiWrap.cpp @@ -70,7 +70,7 @@ ControlWrap & GuiWrapDialog::controller() const void GuiWrapDialog::closeEvent(QCloseEvent * e) { - slotWMHide(); + slotClose(); e->accept(); }