subsurface/desktop-widgets
Berthold Stoeger 3acc28cebf Postpone error message display if not in GUI thread
Calls to report_error() crashed if not called from GUI thread.
Fix this by postponing error message display if not in GUI thread.
Code that creates a thread which possibly calls report_error()
is responsible for calling MainWindow::showErrors() to flush
the accumulated messages.

Note that there is a race condition in report_error() and
get_error_string(). Nevertheless, hitting it should be rather
unlikely (two threads producing error messages at the same time)
and hopefully it can be fixed rather easily.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-10-31 16:32:08 -07:00
..
2015-10-30 10:36:49 -07:00
2017-10-20 17:25:18 -04:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-05-06 11:12:28 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2017-07-28 22:06:34 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2017-03-06 06:40:00 -08:00
2015-10-30 10:36:49 -07:00