Commits

Anonymous committed 38bd971

ignore: clear line edit box before refresh (closes #738)

Comments (0)

Files changed (1)

tortoisehg/hgqt/hgignore.py

         newfilter = hglib.fromunicode(self.le.text()).strip()
         if newfilter == '':
             return
+        self.le.clear()
         if self.recombo.currentIndex() == 0:
             test = 'glob:' + newfilter
             try:
                 qtlib.WarningMsgBox(_('Invalid regexp expression'), str(inst),
                                     parent=self)
                 return
-        self.le.clear()
 
     def refresh(self):
         try: