Commits

Angel Ezquerra  committed 1bcb73c

reporegistry: avoid duplicates when drag and dropping

Without this fix, dragging a repo registry entry would copy rather than move
the dragged entry.

  • Participants
  • Parent commits 66aa04a
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/reporegistry.py

     def dropAccepted(self):
         # Whenever a drag and drop operation is completed, update the settings
         # file
-        self.updateSettingsFile()
+        QTimer.singleShot(0, self.updateSettingsFile)
 
     @pyqtSlot(QString)
     def modifiedSettings(self):