mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Update book details if a note is edited/created from the tag browser context menu.
This commit is contained in:
parent
b07873586a
commit
20d0421723
@ -11,7 +11,7 @@ import traceback
|
|||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from qt.core import (
|
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,
|
QLinearGradient, QMenu, QModelIndex, QPalette, QPen, QPoint, QPointF, QRect, QSize,
|
||||||
QStyle, QStyledItemDelegate, QStyleOptionViewItem, Qt, QTimer, QToolTip, QTreeView,
|
QStyle, QStyledItemDelegate, QStyleOptionViewItem, Qt, QTimer, QToolTip, QTreeView,
|
||||||
pyqtSignal,
|
pyqtSignal,
|
||||||
@ -524,7 +524,8 @@ class TagsView(QTreeView): # {{{
|
|||||||
from calibre.gui2.ui import get_gui
|
from calibre.gui2.ui import get_gui
|
||||||
try:
|
try:
|
||||||
if action == 'edit_note':
|
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
|
return
|
||||||
if action == 'dont_collapse_category':
|
if action == 'dont_collapse_category':
|
||||||
if key not in extra:
|
if key not in extra:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user