summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index 958a2439..258a0e15 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -116,9 +116,9 @@ MainWindow::MainWindow() :
if (!QFile(group::ini_pathname()).exists())
{
set_profile(OPENTRACK_DEFAULT_CONFIG);
- if (!QFile(group::ini_pathname()).exists())
+ const auto pathname = group::ini_pathname();
+ if (!QFile(pathname).exists())
{
- const auto pathname = group::ini_pathname();
QFile file(pathname);
if (file.open(QFile::ReadWrite))
{