Commit b3df8245 authored by Dan Pascu's avatar Dan Pascu

Added a missing condition in session list selection

parent 0cb8b37e
......@@ -641,7 +641,9 @@ class SessionListView(QListView):
def selectionCommand(self, index, event=None):
selection_model = self.selectionModel()
if not index.isValid() or event is None:
if self.selectionMode() == self.NoSelection:
return selection_model.NoUpdate
elif not index.isValid() or event is None:
return selection_model.NoUpdate
elif event.type() == QEvent.MouseButtonPress and not selection_model.selectedIndexes():
return selection_model.ClearAndSelect
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment