Skip to content

Commit

Permalink
fix arrow tool autoselecting when deselecting items in the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
olav-st committed Oct 25, 2020
1 parent db77246 commit 2a08a21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/editordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void EditorDialog::noToolSelected()

void EditorDialog::selectedItemsChanged(QList<KaptionGraphicsItem*> items)
{
if(!items.empty() || !ui->cursorBtn->isChecked())
if(!items.isEmpty() || ui->cursorBtn->isChecked())
{
noToolSelected();
}
Expand Down
2 changes: 2 additions & 0 deletions src/editor/kaptiongraphicstoolkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ void KaptionGraphicsToolkit::updateItemsPropertyValue(QList<KaptionGraphicsItem
void KaptionGraphicsToolkit::updateToolkitState(QList<KaptionGraphicsItem *> items)
{
if (items.isEmpty()) {
/*
if (m_selectedItemClassName.isEmpty()) {
selectItem(m_buttonItemMap.constBegin().key());
}
*/
return;
}

Expand Down

0 comments on commit 2a08a21

Please sign in to comment.