projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set spellcheck highlighter back to active after message was send (fixes #195)
[quassel.git]
/
src
/
qtui
/
inputwidget.cpp
diff --git
a/src/qtui/inputwidget.cpp
b/src/qtui/inputwidget.cpp
index
1b01c21
..
900fef5
100644
(file)
--- 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));
}
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);
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);
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) {
}
void InputWidget::mergeFormatOnSelection(const QTextCharFormat &format) {