Update book details if a note is edited/created from the tag browser context menu.

This commit is contained in:
Charles Haley 2023-09-28 10:51:26 +01:00 committed by Kovid Goyal
parent b07873586a
commit 20d0421723
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -11,7 +11,7 @@ import traceback
from contextlib import suppress
from functools import partial
from qt.core import (
QAbstractItemView, QApplication, QBrush, QColor, QCursor, QDrag, QFont, QIcon,
QAbstractItemView, QApplication, QBrush, QColor, QCursor, QDialog, QDrag, QFont, QIcon,
QLinearGradient, QMenu, QModelIndex, QPalette, QPen, QPoint, QPointF, QRect, QSize,
QStyle, QStyledItemDelegate, QStyleOptionViewItem, Qt, QTimer, QToolTip, QTreeView,
pyqtSignal,
@ -524,7 +524,8 @@ class TagsView(QTreeView): # {{{
from calibre.gui2.ui import get_gui
try:
if action == 'edit_note':
EditNoteDialog(category, extra, self.db).exec()
if EditNoteDialog(category, extra, self.db).exec() == QDialog.DialogCode.Accepted:
get_gui().do_field_item_value_changed()
return
if action == 'dont_collapse_category':
if key not in extra: