mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: clear all templates before insterting the new templates
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
1dd2518624
commit
858796af09
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ int getTotalWork(print_options *printOptions)
|
|||
|
||||
void find_all_templates()
|
||||
{
|
||||
grantlee_templates.clear();
|
||||
QDir dir(getSubsurfaceDataPath("printing_templates"));
|
||||
QFileInfoList list = dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot);
|
||||
foreach (QFileInfo finfo, list) {
|
||||
|
|
Loading…
Add table
Reference in a new issue