diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-07-26 15:58:00 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-28 11:39:07 +0300 |
commit | 858796af09cb78eb844947b8e71153b6c61a045d (patch) | |
tree | 48841aecf9b13f758de976c034024324111e9b1e /templatelayout.cpp | |
parent | 1dd2518624cc001afacead74caed854ac78a5b6a (diff) | |
download | subsurface-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>
Diffstat (limited to 'templatelayout.cpp')
-rw-r--r-- | templatelayout.cpp | 1 |
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) { |