Display update-wneh-locked option.
authorMax Lapan <max.lapan@gmail.com>
Wed, 17 Mar 2010 03:48:59 +0000 (06:48 +0300)
committerMax Lapan <max.lapan@gmail.com>
Wed, 17 Mar 2010 03:48:59 +0000 (06:48 +0300)
settingsDialog.cpp

index 77ff7eb..7dac9e7 100644 (file)
@@ -82,7 +82,14 @@ void SettingsDialog::updateUpdateButtonValue ()
     if (_settings->check (Settings::C_UpdateOnGSM))
         list.append (tr ("GSM"));
 
-    _updateButton->setValueText (val + list.join (", "));
+    val += list.join (", ");
+
+    if (_settings->check (Settings::C_UpdateWhenLocked))
+        val += ", " + tr ("Update when locked");
+    else
+        val += ", " + tr ("Not update when locked");
+
+    _updateButton->setValueText (val);
 }