1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Angel Ezquerra  committed 373302c

repowidget: do not generate the Unapplied Patch Menu if MQ is disabled

This fixes a problem introduced by 1ab583c04f2d which caused TortoiseHg to crash
on startup when MQ was disabled.

  • Participants
  • Parent commits a0bcd53
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

View file
  • Ignore whitespace
         if 'mq' in self.repo.extensions():
             self._mqActions = mq.PatchQueueActions(self)
             self._mqActions.setRepoAgent(self._repoagent)
+            self.generateUnappliedPatchMenu()
 
         QShortcut(QKeySequence('CTRL+P'), self, self.gotoParent)
         self.generateSingleMenu()
         self.generatePairMenu()
-        self.generateUnappliedPatchMenu()
         self.generateMultipleSelectionMenu()
         self.generateBundleMenu()
         self.generateOutgoingMenu()