call handler only if it exists
This commit is contained in:
parent
3bcbde6752
commit
5536262a74
|
@ -2775,6 +2775,7 @@ class ImageChooserDialog(FileChooserDialog):
|
||||||
on_response_ok = (on_ok, on_response_ok),
|
on_response_ok = (on_ok, on_response_ok),
|
||||||
on_response_cancel = on_response_cancel)
|
on_response_cancel = on_response_cancel)
|
||||||
|
|
||||||
|
if on_response_cancel:
|
||||||
self.connect('destroy', on_response_cancel)
|
self.connect('destroy', on_response_cancel)
|
||||||
|
|
||||||
filter = gtk.FileFilter()
|
filter = gtk.FileFilter()
|
||||||
|
|
Loading…
Reference in New Issue