From: RĂ¼diger Sonderfeld Date: Thu, 18 Feb 2010 18:15:26 +0000 (+0100) Subject: Set spellcheck highlighter back to active after message was send (fixes #195) X-Git-Tag: 0.6-rc1~39 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=25e93f53be9b25f376c4f782f5e77d8e59b6cf10 Set spellcheck highlighter back to active after message was send (fixes #195) --- diff --git a/src/qtui/inputwidget.cpp b/src/qtui/inputwidget.cpp index 1b01c21d..900fef5b 100644 --- a/src/qtui/inputwidget.cpp +++ b/src/qtui/inputwidget.cpp @@ -365,7 +365,7 @@ void InputWidget::changeNick(const QString &newNick) const { Client::userInput(BufferInfo::fakeStatusBuffer(net->networkId()), QString("/NICK %1").arg(newNick)); } -void InputWidget::on_inputEdit_textEntered(const QString &text) const { +void InputWidget::on_inputEdit_textEntered(const QString &text) { Client::userInput(currentBufferInfo(), text); ui.boldButton->setChecked(false); ui.underlineButton->setChecked(false); @@ -378,6 +378,11 @@ void InputWidget::on_inputEdit_textEntered(const QString &text) const { fmt.clearForeground(); fmt.clearBackground(); inputLine()->setCurrentCharFormat(fmt); + +#ifdef HAVE_KDE + // Set highlighter back to active in case it was deactivated by too many errors. + ui.inputEdit->highlighter()->setActive(true); +#endif } void InputWidget::mergeFormatOnSelection(const QTextCharFormat &format) { diff --git a/src/qtui/inputwidget.h b/src/qtui/inputwidget.h index bc8edf5b..165c312e 100644 --- a/src/qtui/inputwidget.h +++ b/src/qtui/inputwidget.h @@ -60,7 +60,7 @@ private slots: void setMaxLines(const QVariant &); void setMultiLineEnabled(const QVariant &); void setScrollBarsEnabled(const QVariant &); - void on_inputEdit_textEntered(const QString &text) const; + void on_inputEdit_textEntered(const QString &text); void changeNick(const QString &newNick) const; void setNetwork(NetworkId networkId);