Skip to content

Commit

Permalink
GUI: modified examples from the resources require Save as dialog when…
Browse files Browse the repository at this point in the history
… session is remembered

Signed-off-by: Pavel Pisa <[email protected]>
  • Loading branch information
ppisa committed Dec 11, 2023
1 parent b1a2ad2 commit 78d799c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/windows/editor/editordock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78d799c

Please sign in to comment.