From 78d799cc021a3c578a1b0b384489ae32efb5ac19 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 11 Dec 2023 12:11:17 +0100 Subject: [PATCH] GUI: modified examples from the resources require Save as dialog when session is remembered Signed-off-by: Pavel Pisa --- src/gui/windows/editor/editordock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/windows/editor/editordock.cpp b/src/gui/windows/editor/editordock.cpp index ef11cf88..b0c3492e 100644 --- a/src/gui/windows/editor/editordock.cpp +++ b/src/gui/windows/editor/editordock.cpp @@ -68,7 +68,8 @@ EditorTab *EditorDock::open_file(const QString &filename, bool save_as_required) if (tab->get_editor()->loadFile(filename)) { addTab(tab, tab->title()); setCurrentWidget(tab); - tab->get_editor()->setSaveAsRequired(save_as_required); + if (save_as_required) + tab->get_editor()->setSaveAsRequired(save_as_required); return tab; } else { delete tab;