X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=settingsDialog.cpp;h=77ff7eb74eb35a39ec0a51a9546d7b0389394cb0;hb=1bdbc2ea55ab4ae821f8cab85db4beee912e2797;hp=693c3add5f3b552f6876827a50ec8ee633be7720;hpb=cd12f05dc1bb958043631587acd2ab74e3de0238;p=yandex-traffic diff --git a/settingsDialog.cpp b/settingsDialog.cpp index 693c3ad..77ff7eb 100644 --- a/settingsDialog.cpp +++ b/settingsDialog.cpp @@ -206,11 +206,14 @@ UpdateSettingsDialog::UpdateSettingsDialog (Settings *_settings) _wifiUpdate->setChecked (settings ()->check (Settings::C_UpdateOnWiFi)); _gsmUpdate = new QCheckBox (tr ("Update via GSM"), this); _gsmUpdate->setChecked (settings ()->check (Settings::C_UpdateOnGSM)); + _lockedUpdate = new QCheckBox (tr ("Update when device locked"), this); + _lockedUpdate->setChecked (settings ()->check (Settings::C_UpdateWhenLocked)); initUpdateInterval (layout ()); layout ()->addWidget (_wifiUpdate); layout ()->addWidget (_gsmUpdate); + layout ()->addWidget (_lockedUpdate); } @@ -224,6 +227,7 @@ void UpdateSettingsDialog::saveSettings () #endif settings ()->setCheck (Settings::C_UpdateOnWiFi, _wifiUpdate->isChecked ()); settings ()->setCheck (Settings::C_UpdateOnGSM, _gsmUpdate->isChecked ()); + settings ()->setCheck (Settings::C_UpdateWhenLocked, _lockedUpdate->isChecked ()); }