diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-22 19:12:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-22 19:12:43 +0200 |
commit | afe5e0290e361a7f46289b428c7b865694cee520 (patch) | |
tree | 76eaa419f79578692c62b9516bb7354ca7f1472b | |
parent | 21cd2c012ef23ec3f4b374d82056f1fa1694d904 (diff) |
ui: simplify condition
-rw-r--r-- | facetracknoir/ui.cpp | 4 |
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)) { |