Skip to content

Commit 450eb36

Browse files
committed
Merged revisions 8913 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8913 | mdboom | 2011-01-13 08:57:12 -0500 (Thu, 13 Jan 2011) | 2 lines [3154456] confirm file overwrite (gtk) ........ svn path=/trunk/matplotlib/; revision=8914
1 parent 1b7d8a2 commit 450eb36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/backends/backend_gtk.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,9 @@ def __init__ (self,
993993
filetypes = [],
994994
default_filetype = None
995995
):
996-
super (FileChooserDialog, self).__init__ (title, parent, action,
997-
buttons)
996+
super(FileChooserDialog, self).__init__ (title, parent, action,
997+
buttons)
998+
super(FileChooserDialog, self).set_do_overwrite_confirmation(True)
998999
self.set_default_response (gtk.RESPONSE_OK)
9991000

10001001
if not path: path = os.getcwd() + os.sep

0 commit comments

Comments
 (0)