Commit 773e0329 authored by Dan Pascu's avatar Dan Pascu

Changed what method we call to test if we have a selection

parent 1ea28d66
...@@ -2222,7 +2222,7 @@ class AudioSessionListView(QListView): ...@@ -2222,7 +2222,7 @@ class AudioSessionListView(QListView):
return selection_model.NoUpdate return selection_model.NoUpdate
elif not index.isValid() or event is None: elif not index.isValid() or event is None:
return selection_model.NoUpdate return selection_model.NoUpdate
elif event.type() == QEvent.MouseButtonPress and not selection_model.selectedIndexes(): elif event.type() == QEvent.MouseButtonPress and not selection_model.selection():
return selection_model.ClearAndSelect return selection_model.ClearAndSelect
elif event.type() in (QEvent.MouseButtonPress, QEvent.MouseMove): elif event.type() in (QEvent.MouseButtonPress, QEvent.MouseMove):
return selection_model.NoUpdate return selection_model.NoUpdate
......
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