always show local cursor option didn't apply immediately when turned off
authorChristian Pulvermacher <pulvermacher@gmx.de>
Sun, 29 Jan 2012 21:26:28 +0000 (22:26 +0100)
committerChristian Pulvermacher <pulvermacher@gmx.de>
Sun, 29 Jan 2012 21:26:28 +0000 (22:26 +0100)
src/vncview.cpp

index d0a8e1b..891950f 100644 (file)
@@ -818,8 +818,7 @@ void VncView::reloadSettings()
     disable_tapping = settings.value("disable_tapping", false).toBool();
 
     bool always_show_local_cursor = settings.value("always_show_local_cursor", false).toBool();
-    if(always_show_local_cursor)
-        showDotCursor(CursorOn);
+    showDotCursor(always_show_local_cursor?CursorOn:CursorOff);
 
     enableScaling(true);
 }