aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/shared
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2017-01-19 16:44:22 +0100
committerTim Jenssen <[email protected]>2017-01-20 12:17:10 +0000
commitc6f90e575e2e261f7fa50f951b6fc1824ae5c12f (patch)
tree7f3564ad1491a5f40e64bcee89d70b884409885f /src/plugins/debugger/shared
parente6017c40fca059b27e449f0605f4d79b78de0ff3 (diff)
Utils: Introduce a TemporaryDirectory and TemporaryFile class
Both wrap the corresponding Qt class, but make sure all temporary files or directories are created inside a "master temporary directory". Change-Id: I55461be507c828c965224c02863ea5ed9bbf9498 Reviewed-by: Tim Jenssen <[email protected]>
Diffstat (limited to 'src/plugins/debugger/shared')
-rw-r--r--src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp b/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp
index 9abfca53414..c5ad4146333 100644
--- a/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp
+++ b/src/plugins/debugger/shared/cdbsymbolpathlisteditor.cpp
@@ -30,6 +30,7 @@
#include <utils/pathchooser.h>
#include <utils/checkablemessagebox.h>
+#include <utils/temporarydirectory.h>
#include "symbolpathsdialog.h"
@@ -139,7 +140,7 @@ CdbSymbolPathListEditor::CdbSymbolPathListEditor(QWidget *parent) :
bool CdbSymbolPathListEditor::promptCacheDirectory(QWidget *parent, QString *cacheDirectory)
{
CacheDirectoryDialog dialog(parent);
- dialog.setPath(QDir::tempPath() + QDir::separator() + QLatin1String("symbolcache"));
+ dialog.setPath(Utils::TemporaryDirectory::masterDirectoryPath() + "/symbolcache");
if (dialog.exec() != QDialog::Accepted)
return false;
*cacheDirectory = dialog.path();
@@ -165,7 +166,7 @@ void CdbSymbolPathListEditor::setupSymbolPaths()
if (path.isEmpty() && indexOfSymbolCache != -1)
path = currentPaths.at(indexOfSymbolCache);
if (path.isEmpty())
- path = QDir::tempPath() + QDir::separator() + QLatin1String("symbolcache");
+ path = Utils::TemporaryDirectory::masterDirectoryPath() + "/symbolcache";
bool useSymbolServer = true;
bool useSymbolCache = true;