summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 20:12:55 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 20:12:55 (GMT)
commit44624bd52d1a39034575526a1fcb3964422e2f2a (patch)
treeeb04ad9918a691a4350f601becd3e2bea03425f5
parent67e7ada3117a43ffae831e172b5b061888da0e4e (diff)
Get correct error message when failing to create temporary file
-rw-r--r--part.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/part.cpp b/part.cpp
index 5c938dd..5a9d6de 100644
--- a/part.cpp
+++ b/part.cpp
@@ -36,7 +36,6 @@
#include <QInputDialog>
#include <QWidgetAction>
-#include <kvbox.h>
#include <kaboutapplicationdialog.h>
#include <kactioncollection.h>
#include <kbookmarkaction.h>
@@ -2870,7 +2869,7 @@ bool Part::handleCompressed( QString &destpath, const QString &path, const QStri
KMessageBox::error( widget(),
i18n("<qt><strong>File Error!</strong> Could not create temporary file "
"<nobr><strong>%1</strong></nobr>.</qt>",
- strerror(newtempfile->error())));
+ newtempfile->errorString()));
delete newtempfile;
return false;
}