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

workbench: use url.toLocalFile() to get filesystem path of dropped file

Changeset f228eb0987cc

Parent 27a3b40cec5a

by Yuya Nishihara

Changes to one file · Browse files at f228eb0987cc Showing diff from parent 27a3b40cec5a Diff from another changeset...

 
88
89
90
91
92
93
 
94
95
96
 
88
89
90
 
 
 
91
92
93
94
@@ -88,9 +88,7 @@
  self.setAcceptDrops(True)     def find_root(self, url): - p = str(url.path()) - if os.name == 'nt': - p = p[1:] # skip leading slash (needed on Windows) + p = str(url.toLocalFile())   return paths.find_root(p)     def dragEnterEvent(self, event):