aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Semke <[email protected]>2018-04-05 10:25:33 +0200
committerAlexander Semke <[email protected]>2018-04-05 20:25:49 +0200
commit80584a45aedfe1fe629463e727081a8efd58f176 (patch)
tree5cded52ba8fbdeed0c121f1be9e78ace4832dffb
parentb6065567a67940b3086e0fe3c1c87429ad3ddd2c (diff)
When extracting images from the project file, don't try to copy the image file to a temporary folder that is not existing.
-rw-r--r--src/loadedexpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loadedexpression.cpp b/src/loadedexpression.cpp
index 951d8aa..38e1abb 100644
--- a/src/loadedexpression.cpp
+++ b/src/loadedexpression.cpp
@@ -66,7 +66,7 @@ void LoadedExpression::loadFromXml(const QDomElement& xml, const KZip& file)
if (imageEntry&&imageEntry->isFile())
{
const KArchiveFile* imageFile=static_cast<const KArchiveFile*>(imageEntry);
- QString dir=QStandardPaths::writableLocation(QStandardPaths::TempLocation) + QLatin1String("/") + QLatin1String("cantor");
+ QString dir=QStandardPaths::writableLocation(QStandardPaths::TempLocation);
imageFile->copyTo(dir);
QUrl imageUrl = QUrl::fromLocalFile(QDir(dir).absoluteFilePath(imageFile->name()));
if(type==QLatin1String("latex"))