From afe5e0290e361a7f46289b428c7b865694cee520 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 22 Aug 2015 19:12:43 +0200 Subject: ui: simplify condition --- facetracknoir/ui.cpp | 4 ++-- 1 file 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)) { -- cgit v1.2.3