Fix bug reported by Pascale

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5744 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-28 16:16:58 +00:00
parent 1f07acc188
commit 1e640e8bc7
4 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-11-28 John Levon <levon@movementarian.org>
* QSpellcheckerDialog.C: fix Escape + restarting spellcheck
2002-11-28 John Levon <levon@movementarian.org>
* QSpellcheckerDialog.C: small fix

View File

@ -19,6 +19,7 @@
#include "QSpellchecker.h"
#include "Qt2BC.h"
#include "gettext.h"
#include "debug.h"
#include <qprogressbar.h>
#include <qmessagebox.h>
@ -114,6 +115,7 @@ void QSpellchecker::partialUpdate(int id)
case 2:
dialog_->spellcheckPB->setEnabled(true);
hide();
lyxerr << controller().getMessage() << endl;
QMessageBox::information(0, _("Spellcheck complete"),
controller().getMessage().c_str(),
_("OK"));

View File

@ -102,3 +102,10 @@ void QSpellcheckerDialog::closeEvent(QCloseEvent * e)
form_->slotWMHide();
e->accept();
}
void QSpellcheckerDialog::reject()
{
form_->slotWMHide();
QSpellcheckerDialogBase::reject();
}

View File

@ -33,6 +33,8 @@ protected slots:
virtual void ignoreClicked();
virtual void suggestionChanged(const QString &);
virtual void replaceChanged(const QString &);
virtual void reject();
protected:
virtual void closeEvent(QCloseEvent * e);