Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.1, 2.0.2, and 2.0.3

stable clone: Automatically load the combobox text into the folder browse dialogs

When clicking on the source and destination browse buttons, use the current
text on the corresponding combobox as the starting browsing folder.
If the folder that is currently typed in the combobox does not exist, QT will
automatically chose a valid folder.

Changeset 5ac2cdc0a9f7

Parent ab815bf1af33

by Angel Ezquerra

Changes to one file · Browse files at 5ac2cdc0a9f7 Showing diff from parent ab815bf1af33 Diff from another changeset...

 
323
324
325
326
 
 
327
328
329
 
331
332
333
334
 
 
335
336
337
 
323
324
325
 
326
327
328
329
330
 
332
333
334
 
335
336
337
338
339
@@ -323,7 +323,8 @@
  def browse_src(self):   FD = QFileDialog   caption = _("Select source repository") - path = FD.getExistingDirectory(self, caption) + path = FD.getExistingDirectory(self, caption, \ + self.src_combo.currentText(), QFileDialog.ShowDirsOnly)   if path:   self.src_combo.setEditText(QDir.toNativeSeparators(path))   self.src_combo.setFocus() @@ -331,7 +332,8 @@
  def browse_dest(self):   FD = QFileDialog   caption = _("Select destination repository") - path = FD.getExistingDirectory(self, caption) + path = FD.getExistingDirectory(self, caption, \ + self.dest_combo.currentText(), QFileDialog.ShowDirsOnly)   if path:   self.dest_combo.setEditText(QDir.toNativeSeparators(path))   self.dest_combo.setFocus()