projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1441b83
)
Don't crash if no highlighter is currently active
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 23 Feb 2010 22:12:24 +0000
(23:12 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 23 Feb 2010 22:13:37 +0000
(23:13 +0100)
src/qtui/inputwidget.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/inputwidget.cpp
b/src/qtui/inputwidget.cpp
index
900fef5
..
4aa7592
100644
(file)
--- a/
src/qtui/inputwidget.cpp
+++ b/
src/qtui/inputwidget.cpp
@@
-381,7
+381,8
@@
void InputWidget::on_inputEdit_textEntered(const QString &text) {
#ifdef HAVE_KDE
// Set highlighter back to active in case it was deactivated by too many errors.
#ifdef HAVE_KDE
// Set highlighter back to active in case it was deactivated by too many errors.
- ui.inputEdit->highlighter()->setActive(true);
+ if(ui.inputEdit->highlighter())
+ ui.inputEdit->highlighter()->setActive(true);
#endif
}
#endif
}