1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

David Golub  committed 66cc709

hgignore: support ignoring file by double clicking it

  • Participants
  • Parent commits 0e16f7e
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/hgignore.py

View file
  • Ignore whitespace
         unknownlist.currentTextChanged.connect(self.setGlobFilter)
         unknownlist.setContextMenuPolicy(Qt.CustomContextMenu)
         unknownlist.customContextMenuRequested.connect(self.menuRequest)
+        unknownlist.itemDoubleClicked.connect(self.unknownDoubleClicked)
         lbl = QLabel(_('Backspace or Del to remove row(s)'))
         ivbox.addWidget(lbl)
 
             a.triggered.connect(self.insertFilters)
         self.contextmenu.exec_(point)
 
+    def unknownDoubleClicked(self, item):
+        self.insertFilters([str(item.text())])
+
     def insertFilters(self, pats=False, isregexp=False):
         if pats is False:
             pats = self.sender()._patterns