mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
f8378927b5
commit
39ec9f8a52
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ void PrintOptions::on_importButton_clicked()
|
||||||
tr("HTML files (*.html)"));
|
tr("HTML files (*.html)"));
|
||||||
QFileInfo fileInfo(filename);
|
QFileInfo fileInfo(filename);
|
||||||
QFile::copy(filename, getSubsurfaceDataPath("printing_templates") + QDir::separator() + fileInfo.fileName());
|
QFile::copy(filename, getSubsurfaceDataPath("printing_templates") + QDir::separator() + fileInfo.fileName());
|
||||||
|
printOptions->p_template = fileInfo.fileName();
|
||||||
find_all_templates();
|
find_all_templates();
|
||||||
setup();
|
setup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue