summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-22 19:12:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-22 19:12:43 +0200
commitafe5e0290e361a7f46289b428c7b865694cee520 (patch)
tree76eaa419f79578692c62b9516bb7354ca7f1472b /facetracknoir/ui.cpp
parent21cd2c012ef23ec3f4b374d82056f1fa1694d904 (diff)
ui: simplify condition
Diffstat (limited to 'facetracknoir/ui.cpp')
-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))
{