From cf5f9bcca09db3b12fe2311077fcdfb61ab2cbad Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 8 Feb 2019 01:42:37 +0100 Subject: [PATCH] Write config if it doesn't exist. --- CMakeLists.txt | 2 +- src/main.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d013916..baf4c11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.2) project(compilescript - VERSION 0.3.3 + VERSION 0.3.4 LANGUAGES CXX ) diff --git a/src/main.cpp b/src/main.cpp index f2dc13c..1f58696 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,10 +50,7 @@ bool read_settings() { bool need_save = false; xdgcfg config("compilescript.cfg"); - if (config.read() != 0) - { - return false; - } + config.read(); libconfig::Setting &cfg = config.get_cfg().getRoot(); if (cfg.exists("compiler"))