Changeset 9e384b626728…
Parent d5c8aa54f971…
by
Changes to one file · Browse files at 9e384b626728 Showing diff from parent d5c8aa54f971 Diff from another changeset...
@@ -783,9 +783,10 @@ self.singlecmenu.exec_(point)
def doubleSelectionMenu(self, point, selection):
- if None in selection:
- # No pair menu if working directory is selected
- return
+ for r in selection:
+ # No pair menu if working directory or unapplied patch
+ if type(r) is not int:
+ return
revA, revB = selection
def dagrange():
if revA > revB:
@@ -846,9 +847,10 @@ self.paircmenu.exec_(point)
def multipleSelectionMenu(self, point, selection):
- if None in selection:
- # No multi menu if working directory is selected
- return
+ for r in selection:
+ # No multi menu if working directory or unapplied patch
+ if type(r) is not int:
+ return
def exportSel():
epath = os.path.join(self.repo.root,
self.repo.shortname + '_%r.patch')
|
Loading...