Some users need or want to be able to enter text even in inactive buffers, so
don't stop them from doing so, other clients don't either.
Also, disabling the input line seems to eat global QAction shortcuts for some bizarr
reason (even though the MainWin is marked as focusWidget, it doesn't receive any keypresses
when the input line is disabled).
Fixes #462.
}
}
+
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);
// ... if we're not connected to the network at all
enabled &= net->isConnected();
}
+
ui.inputEdit->setEnabled(enabled);
+#endif
}
const Network *InputWidget::currentNetwork() const {