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 status: fix DND behavior to allow drops on apps like VisualStudio

Finally! I can drag files from the commit tool to VisualStudio. Now it's just
a matter of repeating this fix elsewhere we support drags (grep, manifest, etc)

Changeset d01bb4ced338

Parent 6db7823577e3

by Steve Borho

Changes to one file · Browse files at d01bb4ced338 Showing diff from parent 6db7823577e3 Diff from another changeset...

 
421
422
423
424
425
426
 
427
428
429
430
431
432
 
 
 
 
 
433
434
435
 
421
422
423
 
 
 
424
425
 
 
 
 
 
426
427
428
429
430
431
432
433
@@ -421,15 +421,13 @@
  urls = []   for index in self.selectedRows():   path = self.model().getRow(index)[COL_PATH] - u = QUrl() - u.setPath('file://' + os.path.join(self.repo.root, path)) - urls.append(u) + urls.append(QUrl.fromLocalFile(self.repo.wjoin(path)))   if urls: - d = QDrag(self) - m = QMimeData() - m.setUrls(urls) - d.setMimeData(m) - d.start(Qt.CopyAction) + drag = QDrag(self) + data = QMimeData() + data.setUrls(urls) + drag.setMimeData(data) + drag.start(Qt.CopyAction)     def mousePressEvent(self, event):   self.pressPos = event.pos()