Changeset 1884f4d


Ignore:
Timestamp:
09/03/14 09:13:34 (10 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
62d00ae
Parents:
2ca5cee
Message:

Fix how pc-systemupdatertray saved the "do not run at startup" option so that it works properly now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-systemupdatertray/TrayUI.cpp

    rac131845 r1884f4d  
    1212  //Load the tray settings file 
    1313  settings = new QSettings("PCBSD"); 
     14    settings->sync(); //make sure to load it right away 
    1415  //Setup the checktimer 
    1516  chktime = new QTimer(this); 
     
    364365void TrayUI::slotRunAtStartupClicked(){ 
    365366  settings->setValue("/PC-BSD/SystemUpdater/runAtStartup",runAtStartup->isChecked()); 
     367  settings->sync(); //make sure to save to file right away 
     368  //Now be sure to also save this to the PC-BSD system registry so it is acted upon properly 
     369  QString cmd = "pbreg set /PC-BSD/SystemUpdater/runAtStartup false"; 
     370  if(runAtStartup->isChecked()){ cmd.replace(" false", " true"); } 
     371  QProcess::startDetached(cmd); 
    366372} 
    367373 
    368374void TrayUI::slotShowMessagesClicked(){ 
    369375  settings->setValue("/PC-BSD/SystemUpdater/displayPopup",showNotifications->isChecked());       
     376  settings->sync(); //make sure to save to file right away 
    370377} 
    371378 
Note: See TracChangeset for help on using the changeset viewer.