Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

clone: do not try to convert QString to Python str

1 - this is not encoding safe
2 - it's completely unnecessary since setEditText() wants a QString anyway.

Closes #75

Changeset 5b572e6333db

Parent 0f1bc8d99e9b

by Steve Borho

Changes to one file · Browse files at 5b572e6333db Showing diff from parent 0f1bc8d99e9b Diff from another changeset...

 
311
312
313
314
315
316
 
 
317
318
319
320
321
322
323
324
325
 
 
326
327
328
 
311
312
313
 
 
 
314
315
316
317
318
319
320
321
 
 
 
322
323
324
325
326
@@ -311,18 +311,16 @@
  FD = QFileDialog   caption = _("Select source repository")   path = FD.getExistingDirectory(self, caption) - response = str(path) - if response: - self.src_combo.setEditText(response) + if path: + self.src_combo.setEditText(path)   self.src_combo.setFocus()     def browse_dest(self):   FD = QFileDialog   caption = _("Select destination repository")   path = FD.getExistingDirectory(self, caption) - response = str(path) - if response: - self.dest_combo.setEditText(response) + if path: + self.dest_combo.setEditText(path)   self.dest_combo.setFocus()     def command_started(self):