Commits

Yuya Nishihara committed 040b460

matching: eliminate unnecessary branching to enable/disable accept button

  • Participants
  • Parent commits 41c21af

Comments (0)

Files changed (1)

File tortoisehg/hgqt/matching.py

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