summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2016-11-15 17:45:02 (GMT)
committerElvis Angelaccio <elvis.angelaccio@kde.org>2016-11-15 17:45:02 (GMT)
commitca57e721819ff05d5f2d8367eb65b5bbafe1bb5a (patch)
tree3fc480aa586d9dbdc53cf64af5d99d48f808a5ee
parent5a575955f82b3b4e65a95a04c94c21c7600c9739 (diff)
CliInterface: hide the temporary extraction folder
Otherwise it will be visible when drag-and-dropping huge files. Differential Revision: D3349
-rw-r--r--kerfuffle/cliinterface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kerfuffle/cliinterface.cpp b/kerfuffle/cliinterface.cpp
index 9dc7bc9..bb05352 100644
--- a/kerfuffle/cliinterface.cpp
+++ b/kerfuffle/cliinterface.cpp
@@ -123,7 +123,8 @@ bool CliInterface::extractFiles(const QVector<Archive::Entry*> &files, const QSt
const bool useTmpExtractDir = options.isDragAndDropEnabled() || options.alwaysUseTempDir();
if (useTmpExtractDir) {
- m_extractTempDir.reset(new QTemporaryDir(QApplication::applicationName() + QLatin1Char('-')));
+ // Create an hidden temp folder in the current directory.
+ m_extractTempDir.reset(new QTemporaryDir(QStringLiteral(".%1-").arg(QCoreApplication::applicationName())));
qCDebug(ARK) << "Using temporary extraction dir:" << m_extractTempDir->path();
if (!m_extractTempDir->isValid()) {