Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
bcf16332
Commit
bcf16332
authored
Sep 16, 2006
by
Yann Leboulanger
Browse files
destroy FileChooserDialog when we press cancel.
parent
f69cd8ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs.py
View file @
bcf16332
...
...
@@ -851,12 +851,16 @@ class FileChooserDialog(gtk.FileChooserDialog):
self
.
response_cancel
[
0
](
dialog
,
*
self
.
response_cancel
[
1
:])
else
:
self
.
response_cancel
(
dialog
)
else
:
self
.
just_destroy
(
dialog
)
elif
response
==
gtk
.
RESPONSE_OK
:
if
self
.
response_ok
:
if
isinstance
(
self
.
response_ok
,
tuple
):
self
.
response_ok
[
0
](
dialog
,
*
self
.
response_ok
[
1
:])
else
:
self
.
response_ok
(
dialog
)
else
:
self
.
just_destroy
(
dialog
)
def
just_destroy
(
self
,
widget
):
self
.
destroy
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment