mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
* Fixes shift click selection after programmatic selection in most cases * Attempting to resolve checks * Adding comment for _move_current setCurrentIndex * Update qt/aqt/browser/table/table.py (dae)
This commit is contained in:
parent
4ab0db3127
commit
81de39768c
2 changed files with 5 additions and 1 deletions
|
@ -173,6 +173,7 @@ jthulhu <https://github.com/jthulhu>
|
||||||
Escape0707 <tothesong@gmail.com>
|
Escape0707 <tothesong@gmail.com>
|
||||||
Loudwig <https://github.com/Loudwig>
|
Loudwig <https://github.com/Loudwig>
|
||||||
Wu Yi-Wei <https://github.com/Ianwu0812>
|
Wu Yi-Wei <https://github.com/Ianwu0812>
|
||||||
|
RRomeroJr <117.rromero@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
|
@ -608,7 +608,10 @@ class Table:
|
||||||
direction,
|
direction,
|
||||||
self.browser.mw.app.keyboardModifiers(),
|
self.browser.mw.app.keyboardModifiers(),
|
||||||
)
|
)
|
||||||
self._view.selectionModel().setCurrentIndex(
|
# Setting current like this avoids a bug with shift-click selection
|
||||||
|
# https://github.com/ankitects/anki/issues/2469
|
||||||
|
self._view.setCurrentIndex(index)
|
||||||
|
self._view.selectionModel().select(
|
||||||
index,
|
index,
|
||||||
QItemSelectionModel.SelectionFlag.Clear
|
QItemSelectionModel.SelectionFlag.Clear
|
||||||
| QItemSelectionModel.SelectionFlag.Select
|
| QItemSelectionModel.SelectionFlag.Select
|
||||||
|
|
Loading…
Reference in a new issue