From 2a08a215a698d5155a84c58c746f2b15f44c3edb Mon Sep 17 00:00:00 2001 From: olav-st Date: Sun, 25 Oct 2020 17:41:33 +0100 Subject: [PATCH] fix arrow tool autoselecting when deselecting items in the editor --- src/dialog/editordialog.cpp | 2 +- src/editor/kaptiongraphicstoolkit.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dialog/editordialog.cpp b/src/dialog/editordialog.cpp index d5b6ad4..5ee40bd 100644 --- a/src/dialog/editordialog.cpp +++ b/src/dialog/editordialog.cpp @@ -109,7 +109,7 @@ void EditorDialog::noToolSelected() void EditorDialog::selectedItemsChanged(QList items) { - if(!items.empty() || !ui->cursorBtn->isChecked()) + if(!items.isEmpty() || ui->cursorBtn->isChecked()) { noToolSelected(); } diff --git a/src/editor/kaptiongraphicstoolkit.cpp b/src/editor/kaptiongraphicstoolkit.cpp index 6682734..4a98c4f 100644 --- a/src/editor/kaptiongraphicstoolkit.cpp +++ b/src/editor/kaptiongraphicstoolkit.cpp @@ -68,9 +68,11 @@ void KaptionGraphicsToolkit::updateItemsPropertyValue(QList items) { if (items.isEmpty()) { + /* if (m_selectedItemClassName.isEmpty()) { selectItem(m_buttonItemMap.constBegin().key()); } + */ return; }