srsGUI
srsGUI copied to clipboard
allow graceful exit
Two commits to allow for a graceful exit:
Commit 1: Without the commit, we get the following error when running tests:
# ./waterfallplot_test_c
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.
Commit 2: check if the application was closed (e.g. using a close button). Without this commit, it tries to send a blocking signal to destroy a widget and hangs as there is no app to receive it.