mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
85aba43903
commit
cd9d25c1bb
@ -1651,8 +1651,8 @@ class BooksView(QTableView): # {{{
|
||||
if move_by is not None:
|
||||
hint = QAbstractItemDelegate.EndEditHint.NoHint
|
||||
ans = super().closeEditor(editor, hint)
|
||||
if move_by is not None and self.currentIndex() == orig:
|
||||
index = self.moveCursor(move_by,Qt.KeyboardModifier.NoModifier)
|
||||
if move_by is not None and self.currentIndex() == orig and self.state() is not QAbstractItemView.State.EditingState:
|
||||
index = self.moveCursor(move_by, Qt.KeyboardModifier.NoModifier)
|
||||
if index.isValid():
|
||||
def edit():
|
||||
self.setCurrentIndex(index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user