Commits

Angel Ezquerra  committed cf495b9

matching: Enabled 'Match' button when the revset is valid

This fixes a bug introduced in 5198dfa9012ea9e12175eacfd87fa5eeaab118aa.

  • Participants
  • Parent commits 37a8609
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/matching.py

             validrevset = True
         except (error.LookupError, error.RepoLookupError):
             csinfo_set_text(_('<b>Unknown revision!</b>'))
-            self.match_btn.setDisabled(True)
         except (error.ParseError):
             csinfo_set_text(_('<b>Parse Error!</b>'))
-        self.match_btn.setDisabled(validrevset)
+        if validrevset:
+            self.match_btn.setEnabled(True)
+        else:
+            self.match_btn.setDisabled(True)
 
     def match(self):
         self.saveSettings()