diff options
Diffstat (limited to 'src/libs/gui')
-rw-r--r-- | src/libs/gui/App.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/gui/App.hpp b/src/libs/gui/App.hpp index 04666285..d4caef21 100644 --- a/src/libs/gui/App.hpp +++ b/src/libs/gui/App.hpp @@ -95,8 +95,8 @@ public: void port_activity(Port* port); bool signal() const { return _enable_signal; } - void enable_signals() { _enable_signal = true; } - void disable_signals() { _enable_signal = false; } + bool disable_signals() { bool old = _enable_signal; _enable_signal = false; return old; } + void enable_signals(bool b) { _enable_signal = b; } ConnectWindow* connect_window() const { return _connect_window; } MessagesWindow* messages_dialog() const { return _messages_window; } |