X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Finputwidget.cpp;h=340f9e59154e094f26fb22566fda0c4e04d36a1e;hp=d3a7f74df1b89904ebef361339990141cec7e864;hb=1b9dc90e54c1c7c2012decfb87cce80dbae60be9;hpb=017602cf14ad2fbfffed4a71a613d5eaa87e43c9 diff --git a/src/qtui/inputwidget.cpp b/src/qtui/inputwidget.cpp index d3a7f74d..340f9e59 100644 --- a/src/qtui/inputwidget.cpp +++ b/src/qtui/inputwidget.cpp @@ -277,7 +277,12 @@ void InputWidget::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int } } + void InputWidget::updateEnabledState() { +// FIXME: Find a visualization for this that does not disable the widget! +// Disabling kills global action shortcuts, plus users sometimes need/want to enter text +// even in inactive channels. +#if 0 QModelIndex currentIndex = selectionModel()->currentIndex(); const Network *net = Client::networkModel()->networkByIndex(currentIndex); @@ -288,7 +293,9 @@ void InputWidget::updateEnabledState() { // ... if we're not connected to the network at all enabled &= net->isConnected(); } + ui.inputEdit->setEnabled(enabled); +#endif } const Network *InputWidget::currentNetwork() const {