Prevent crash described in #34555.

Normally it wouldn't be possible to click on the "Connect" button if no node
is selected, because the button would be disabled.

However, double clicking on a node is also hooked up to the same signal
and double clicking is possible even if the "Connect" button is disabled.

This caused a crash described in #34555.
This commit is contained in:
asynts
2020-01-14 15:48:00 +01:00
parent dc0f43a1c2
commit 71b4b180ba
2 changed files with 13 additions and 1 deletions

View File

@ -76,6 +76,7 @@ class ConnectDialog : public ConfirmationDialog {
void ok_pressed();
void _cancel_pressed();
void _tree_node_selected();
void _tree_item_activated();
void _add_bind();
void _remove_bind();
void _advanced_pressed();