From a87527a9eff50ba9219c664932cd3e422462cb88 Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Fri, 11 Aug 2023 18:25:54 +0200 Subject: [PATCH] add saved template directly to recent templates --- src/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f56ca83..461c417 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -518,6 +518,11 @@ void MainWindow::saveTemplate() QJsonDocument saveDoc(jo); saveFile.write(saveDoc.toJson()); + + // add new template to recent templates + m_recentTemplates.removeOne(fileName); + m_recentTemplates.prepend(fileName); + populateRecentTemplates(); } /*! * \brief read in template