Commit 198a3ab2 authored by sumpfralle's avatar sumpfralle

avoid warnings if log messages are sent after GTK shutdown


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@746 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 95b35bd0
......@@ -1404,8 +1404,9 @@ class ProjectGui:
# remove all non-ascii characters
message = "".join([char for char in message if ord(char) < 128])
self.log_model.append((timestamp, title, message))
# update the status bar
self.status_bar.push(0, message)
# update the status bar (if the GTK interface is still active)
if not self.status_bar.window is None:
self.status_bar.push(0, message)
@gui_activity_guard
def copy_log_to_clipboard(self, widget=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment