r24033 by jghali - Fix temporary scrapbook items thumbnails not being deleted when clsoign Scribus
scribus-commit
scribus-commit at lists.scribus.net
Fri Sep 25 14:22:38 UTC 2020
Author: jghali
Date: Fri Sep 25 14:22:38 2020
New Revision: 24033
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24033
Log:
Fix temporary scrapbook items thumbnails not being deleted when clsoign Scribus
Modified:
trunk/Scribus/scribus/ui/scrapbookpalette.cpp
Modified: trunk/Scribus/scribus/ui/scrapbookpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24033&path=/trunk/Scribus/scribus/ui/scrapbookpalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/scrapbookpalette.cpp (original)
+++ trunk/Scribus/scribus/ui/scrapbookpalette.cpp Fri Sep 25 14:22:38 2020
@@ -1963,10 +1963,16 @@
{
QFile f(it.value().Data);
f.remove();
- QFileInfo fi(QDir::toNativeSeparators(tempBView->ScFilename + "/" + it.key() + ".png"));
- if (fi.exists())
+ QFileInfo fi1(QDir::toNativeSeparators(tempBView->ScFilename + "/" + it.key() + ".png"));
+ if (fi1.exists())
{
QFile f2(QDir::toNativeSeparators(tempBView->ScFilename + "/" + it.key() + ".png"));
+ f2.remove();
+ }
+ QFileInfo fi2(QDir::toNativeSeparators(tempBView->ScFilename + "/.ScribusThumbs/" + it.key() + ".png"));
+ if (fi2.exists())
+ {
+ QFile f2(QDir::toNativeSeparators(tempBView->ScFilename + "/.ScribusThumbs/" + it.key() + ".png"));
f2.remove();
}
QFileInfo fiD(QDir::toNativeSeparators(tempBView->ScFilename + "/" + it.key()));
More information about the scribus-commit
mailing list