From 893fa6d53b8b7efaa20a83e023bc06e9a0b16533 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 14 Nov 2016 14:03:49 +0100 Subject: [PATCH] Assign the temp path properly when fetching it as a default --- qrenderdoc/Code/CaptureContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Code/CaptureContext.cpp b/qrenderdoc/Code/CaptureContext.cpp index 88a809792..7c1dc1044 100644 --- a/qrenderdoc/Code/CaptureContext.cpp +++ b/qrenderdoc/Code/CaptureContext.cpp @@ -89,7 +89,7 @@ QString CaptureContext::TempLogFilename(QString appname) QDir dir(folder); if(folder == "" || !dir.exists()) - folder = QDir::tempPath(); + dir = QDir(QDir::tempPath()); return dir.absoluteFilePath( appname + "_" + QDateTime::currentDateTimeUtc().toString("yyyy.MM.dd_HH.mm.ss") + ".rdc");