summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-23 01:59:26 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-24 21:50:12 +0200
commit9209382c1868045baf49da42c5700da43556a49f (patch)
tree74315c1c768e1c658ed48b20de4579cd14179916 /desktop-widgets/mainwindow.cpp
parent6895c0eca5550b449ee616b7d3b3c5beb8b54ab3 (diff)
downloadsubsurface-9209382c1868045baf49da42c5700da43556a49f.tar.gz
printing: add set_bundled_templates_as_read_only()
Add the function set_bundled_templates_as_read_only() in templatelayout.cpp/h. The function is used to mark the bundled template files as read-only in the user folder. It is called in mainwindow.cpp, after the files are copied from the bundle. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index f685a2b74..05314af1d 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -258,6 +258,7 @@ MainWindow::MainWindow() : QMainWindow(),
#ifndef NO_PRINTING
// copy the bundled print templates to the user path; no overwriting occurs!
copyPath(getPrintingTemplatePathBundle(), getPrintingTemplatePathUser());
+ set_bundled_templates_as_read_only();
find_all_templates();
#endif