FIxing some issues with quick jump
authorEd Page <eopage@byu.net>
Wed, 2 Jun 2010 12:42:02 +0000 (07:42 -0500)
committerEd Page <eopage@byu.net>
Wed, 2 Jun 2010 12:42:02 +0000 (07:42 -0500)
src/gonvert_qt.py

index f416cab..51d2c36 100755 (executable)
@@ -216,6 +216,7 @@ class QuickJump(object):
                catWindow = self._app.request_category()
                unitsWindow = catWindow.selectCategory(categoryName)
                unitsWindow.select_unit(unitName)
+               self.close()
 
        @misc_utils.log_exception(_moduleLogger)
        def _on_search_edited(self, *args):
@@ -223,6 +224,7 @@ class QuickJump(object):
                if len(userInput) <  self.MINIMAL_ENTRY:
                        return
 
+               self._resultsBox.clear()
                lowerInput = str(userInput).lower()
                for catIndex, category in enumerate(unit_data.UNIT_CATEGORIES):
                        units = unit_data.get_units(category)