Skip to content

Commit 50caff3

Browse files
committed
#3419 note: allow remembering "No" when inserting media
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 0b0a6b3 commit 50caff3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
(for [#3419](https://github.com/pbek/QOwnNotes/issues/3419))
77
- Image tags like `![](:/imageId "Some hover text")` are now properly recognized and imported
88
- The title attribute is used as the image filename when no alt text is provided
9+
- The **Image file exists** dialog when inserting new images was improved to also
10+
support remembering the `No` button choice (for [#3419](https://github.com/pbek/QOwnNotes/issues/3419))
911

1012
## 26.1.2
1113

src/entities/note.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4246,7 +4246,10 @@ QString Note::getInsertMediaMarkdown(QFile *file, bool addNewLine, bool returnUr
42464246
nullptr, QObject::tr("Image file exists"),
42474247
QObject::tr("Image file already exists in the media folder, "
42484248
"do you want to use the existing one instead of creating a new file?"),
4249-
QStringLiteral("insert-media-use-existing-image")) == QMessageBox::Yes) {
4249+
QStringLiteral("insert-media-use-existing-image"),
4250+
QMessageBox::Yes | QMessageBox::No,
4251+
QMessageBox::No,
4252+
QMessageBox::StandardButtons()) == QMessageBox::Yes) {
42504253
useExistingFile = true;
42514254
}
42524255
}

0 commit comments

Comments
 (0)