Commit a43da049 authored by sumpfralle's avatar sumpfralle

fixed log error dialog cleanup


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1253 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 23b5d06d
...@@ -197,8 +197,8 @@ class GTKHandler(logging.Handler): ...@@ -197,8 +197,8 @@ class GTKHandler(logging.Handler):
if ord(char) < 128]) if ord(char) < 128])
window.set_title(message_title) window.set_title(message_title)
# make sure that the window gets destroyed later # make sure that the window gets destroyed later
def close_window(*args): def close_window(dialog, *args):
window.destroy() dialog.destroy()
for signal in ("close", "response"): for signal in ("close", "response"):
window.connect(signal, close_window) window.connect(signal, close_window)
# accept "destroy" action -> remove window # accept "destroy" action -> remove window
......
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