X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=gui%2Fchannelwidgetinput.cpp;h=813d1c8c67d8da625554cf6ff3395c3e70e581ee;hp=37ec8f77296026da6b0d3fc21b6b09fe6daa246a;hb=fd718b6209f1ad2bcd199c44c2dae3b0cb0f633b;hpb=a37f958a6db77af048619b4af1553ef47dca295f diff --git a/gui/channelwidgetinput.cpp b/gui/channelwidgetinput.cpp index 37ec8f77..813d1c8c 100644 --- a/gui/channelwidgetinput.cpp +++ b/gui/channelwidgetinput.cpp @@ -22,13 +22,15 @@ ChannelWidgetInput::ChannelWidgetInput(QWidget *parent) : QLineEdit(parent) { idx = 0; - //tabMode = false; connect(this, SIGNAL(returnPressed()), this, SLOT(enter())); - TabCompleter *tc = new TabCompleter(this); - tabComplete = tc; + tabComplete = new TabCompleter(this); connect(this, SIGNAL(nickListUpdated(QStringList)), tabComplete, SLOT(updateNickList(QStringList))); } +ChannelWidgetInput::~ChannelWidgetInput() { + delete tabComplete; +} + void ChannelWidgetInput::keyPressEvent(QKeyEvent * event) { if(event->key() == Qt::Key_Tab) { // Tabcomplete