Commits

Steve Borho committed 3e39304

settings: give QCompleter a parent widget

Comments (0)

Files changed (1)

tortoisehg/hgqt/settings.py

         self.setValidator(opts.get('validator', None))
         self.defaults = opts.get('defaults', [])
         if self.defaults and self.isEditable():
-            comp = QCompleter(self.defaults)
-            self.setCompleter(comp)
+            self.setCompleter(QCompleter(self.defaults, self))
         self.curvalue = None
         self.loaded = False
         if 'nohist' in opts: