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>
This commit is contained in:
Gehad elrobey 2015-07-28 09:16:17 +02:00 committed by Lubomir I. Ivanov
parent f8378927b5
commit 39ec9f8a52

View file

@ -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();
}