From 9c4b0170bfc321a31c6f3d0f7cd34edfa74fe1f4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 15 Oct 2016 20:26:34 +0200 Subject: Make all current written tests pass Fixes a couple of issues with the tests. Also, a type in prefs.h is "short" while it's actually a boolean, this made me write the wrong testcase for this. Fixed this by setting the Qt wrapper to bool, but I didn't changed the c implementation because I tought I could break something. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- core/subsurface-qt/SettingsObjectWrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp') diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 417b90411..009ca6403 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -866,7 +866,7 @@ int ProxySettings::port() const return prefs.proxy_port; } -short ProxySettings::auth() const +bool ProxySettings::auth() const { return prefs.proxy_auth; } @@ -915,7 +915,7 @@ void ProxySettings::setPort(int value) emit portChanged(value); } -void ProxySettings::setAuth(short value) +void ProxySettings::setAuth(bool value) { if (value == prefs.proxy_auth) return; -- cgit v1.2.3-70-g09d2