Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

archive: fix initial directory for browse dialog

If the path doesn't exist, change to its parent.

Changeset 1246c1753318

Parent ab5594bd4b81

by Yuki KODAMA

Changes to one file · Browse files at 1246c1753318 Showing diff from parent ab5594bd4b81 Diff from another changeset...

 
195
196
197
 
 
198
199
200
 
195
196
197
198
199
200
201
202
@@ -195,6 +195,8 @@
  def browse_clicked(self, button):   """Select the destination directory or file"""   dest = hglib.fromutf(self.destentry.get_text()) + if not os.path.exists(dest): + dest = os.path.dirname(dest)   select = self.get_selected_archive_type()   if select['type'] == 'files':   response = gtklib.NativeFolderSelectDialog(