aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-28 09:16:17 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-28 11:39:35 +0300
commit39ec9f8a52766f6ed2fb8395dc511bcfd7bf1539 (patch)
tree54b8855b593df73e03b3f68d8747c3fa5e1cac9f
parentf8378927b503c51bfaca456e0f511d0e567fafee (diff)
downloadsubsurface-39ec9f8a52766f6ed2fb8395dc511bcfd7bf1539.tar.gz
Printing: select current template upon importing
When importing a template, make it the user currently selected template. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--qt-ui/printoptions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
index b143e49d0..48489bae5 100644
--- a/qt-ui/printoptions.cpp
+++ b/qt-ui/printoptions.cpp
@@ -108,6 +108,7 @@ void PrintOptions::on_importButton_clicked()
tr("HTML files (*.html)"));
QFileInfo fileInfo(filename);
QFile::copy(filename, getSubsurfaceDataPath("printing_templates") + QDir::separator() + fileInfo.fileName());
+ printOptions->p_template = fileInfo.fileName();
find_all_templates();
setup();
}