From fd953c14598c4f919ba9341cb29f50cb83caf8c9 Mon Sep 17 00:00:00 2001 From: woogerboy21 Date: Tue, 1 Jul 2014 01:28:57 -0400 Subject: [PATCH] Variable Declaration Book Declare for new setting value --- servatrice/src/servatrice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servatrice/src/servatrice.cpp b/servatrice/src/servatrice.cpp index a313a9b5c..0b087ccba 100644 --- a/servatrice/src/servatrice.cpp +++ b/servatrice/src/servatrice.cpp @@ -132,7 +132,7 @@ bool Servatrice::initServer() { serverName = settings->value("server/name").toString(); serverId = settings->value("server/id", 0).toInt(); - regServerOnly = settings->value("server/regonly", 0).toBool(); + bool regServerOnly = settings->value("server/regonly", 0).toBool(); const QString authenticationMethodStr = settings->value("authentication/method").toString(); if (authenticationMethodStr == "sql") {