Skip to content

Commit

Permalink
Open image editor instead of empty internal one (#2379)
Browse files Browse the repository at this point in the history
Edit action on an image item, opens image editor instead of internal
editor if the item does not contain any text.
  • Loading branch information
hluk committed Jun 23, 2023
1 parent 77a61ca commit fbac692
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/item/itemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ ItemEditorWidget *ItemDelegate::createCustomEditor(
text = getTextData(data, mimeHtml);
if (text.isEmpty()) {
text = getTextData(data);
if (text.isNull())
return nullptr;
} else {
hasHtml = true;
}
Expand Down

0 comments on commit fbac692

Please sign in to comment.