projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- small tweak to tabcompletion
[quassel.git]
/
gui
/
channelwidgetinput.cpp
diff --git
a/gui/channelwidgetinput.cpp
b/gui/channelwidgetinput.cpp
index
813d1c8
..
c4d1a06
100644
(file)
--- a/
gui/channelwidgetinput.cpp
+++ b/
gui/channelwidgetinput.cpp
@@
-32,13
+32,9
@@
ChannelWidgetInput::~ChannelWidgetInput() {
}
void ChannelWidgetInput::keyPressEvent(QKeyEvent * event) {
}
void ChannelWidgetInput::keyPressEvent(QKeyEvent * event) {
- if(event->key() == Qt::Key_Tab) {
- // Tabcomplete
- if(text().length() > 0) {
- tabComplete->complete();
- }
+ if(event->key() == Qt::Key_Tab) { // Tabcomplete
+ tabComplete->complete();
event->accept();
event->accept();
-
} else {
tabComplete->disable();
if(event->key() == Qt::Key_Up) {
} else {
tabComplete->disable();
if(event->key() == Qt::Key_Up) {