Test is parent has window before setting cursor
This commit is contained in:
1 parent
806ed65192
commit
e990189dd9
1 file changed
+2
-1
@@ -1247,7 +1247,8 @@ class RPCProgress(object):
|
||||
progressbar.pulse()
|
||||
time.sleep(0.1)
|
||||
self.parent.props.sensitive = parent_sensitive
|
||||
self.parent.window.set_cursor(None)
|
||||
if self.parent.window:
|
||||
self.parent.window.set_cursor(None)
|
||||
if win:
|
||||
win.destroy()
|
||||
with gtk.gdk.lock:
|
||||
|
||||
Reference in new issue
Block a user