Commits

Yuya Nishihara committed f550721

resolve: don't start new event loop unnecessarily in menu handler

  • Participants
  • Parent commits 767f738

Comments (0)

Files changed (1)

File tortoisehg/hgqt/resolve.py

 
     @pyqtSlot(QPoint)
     def utreeMenuRequested(self, point):
-        self.utreecmenu.exec_(self.utree.viewport().mapToGlobal(point))
+        self.utreecmenu.popup(self.utree.viewport().mapToGlobal(point))
 
     @pyqtSlot(QPoint)
     def rtreeMenuRequested(self, point):
-        self.rtreecmenu.exec_(self.rtree.viewport().mapToGlobal(point))
+        self.rtreecmenu.popup(self.rtree.viewport().mapToGlobal(point))
 
     def utreeDoubleClicked(self):
         if self.repo.ui.configbool('tortoisehg', 'autoresolve'):