summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-26 15:58:00 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-28 11:39:07 +0300
commit858796af09cb78eb844947b8e71153b6c61a045d (patch)
tree48841aecf9b13f758de976c034024324111e9b1e
parent1dd2518624cc001afacead74caed854ac78a5b6a (diff)
downloadsubsurface-858796af09cb78eb844947b8e71153b6c61a045d.tar.gz
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>
-rw-r--r--templatelayout.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/templatelayout.cpp b/templatelayout.cpp
index 8a03956f3..30919891a 100644
--- a/templatelayout.cpp
+++ b/templatelayout.cpp
@@ -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) {