X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=gui%2Fchannelwidgetinput.cpp;h=c4d1a06fa3ae72592b59de811ad32d1814e2c265;hp=813d1c8c67d8da625554cf6ff3395c3e70e581ee;hb=b10bb4b6768536f34fd5e7b00cb8755279af135d;hpb=7a0c26e22498cabadd791be32614ba65f69125c3 diff --git a/gui/channelwidgetinput.cpp b/gui/channelwidgetinput.cpp index 813d1c8c..c4d1a06f 100644 --- a/gui/channelwidgetinput.cpp +++ b/gui/channelwidgetinput.cpp @@ -32,13 +32,9 @@ ChannelWidgetInput::~ChannelWidgetInput() { } 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(); - } else { tabComplete->disable(); if(event->key() == Qt::Key_Up) {