X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Finputwidget.cpp;h=900fef5bbd7fa55454b0080d9e98e6b6ccf3b3d8;hb=25e93f53be9b25f376c4f782f5e77d8e59b6cf10;hp=1b01c21dd468f176fd823a8141216a2034feca11;hpb=7f19854cca8463e0002318db7e075c438f535155;p=quassel.git 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) {