Removed sonarqube issues tagged clumsy

This commit is contained in:
Abby Gourlay 2020-08-02 15:46:32 +01:00
parent da21f49928
commit 98c86304fe
9 changed files with 42 additions and 65 deletions

View file

@ -64,14 +64,13 @@ class ContextMenu(xbmcgui.WindowXMLDialog):
if action in (ACTION_BACK, ACTION_PARENT_DIR, ACTION_PREVIOUS_MENU):
self.close()
if action in (ACTION_SELECT_ITEM, ACTION_MOUSE_LEFT_CLICK):
if action in (ACTION_SELECT_ITEM, ACTION_MOUSE_LEFT_CLICK) and self.getFocusId() == LIST:
if self.getFocusId() == LIST:
option = self.list_.getSelectedItem()
self.selected_option = ensure_text(option.getLabel())
LOG.info('option selected: %s', self.selected_option)
option = self.list_.getSelectedItem()
self.selected_option = ensure_text(option.getLabel())
LOG.info('option selected: %s', self.selected_option)
self.close()
self.close()
def _add_editcontrol(self, x, y, height, width, password=0):