author | harlekin <harlekin> | 2002-10-02 11:27:35 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-02 11:27:35 (UTC) |
commit | ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38 (patch) (unidiff) | |
tree | 6fab13be118de545153d3081dba989864ba3b57c /core/pim/today/todayconfig.cpp | |
parent | 8f904d99e7b6e04b6043226a63f6c417171a7cad (diff) | |
download | opie-ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38.zip opie-ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38.tar.gz opie-ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38.tar.bz2 |
fixed broken autostart handling
Diffstat (limited to 'core/pim/today/todayconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/todayconfig.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp index 9ff9ba6..3fc5830 100644 --- a/core/pim/today/todayconfig.cpp +++ b/core/pim/today/todayconfig.cpp | |||
@@ -106,4 +106,3 @@ void TodayConfig::setAutoStart() { | |||
106 | cfg.setGroup( "Autostart" ); | 106 | cfg.setGroup( "Autostart" ); |
107 | int autostart = cfg.readNumEntry( "autostart", 1 ); | 107 | if ( m_autoStart ) { |
108 | if ( autostart ) { | ||
109 | QCopEnvelope e( "QPE/System", "autoStart(QString,QString,QString)" ); | 108 | QCopEnvelope e( "QPE/System", "autoStart(QString,QString,QString)" ); |
@@ -111,3 +110,3 @@ void TodayConfig::setAutoStart() { | |||
111 | e << QString( "today" ); | 110 | e << QString( "today" ); |
112 | e << m_autoStartTimer; | 111 | e << QString("%1").arg( m_autoStartTimer ); |
113 | } else { | 112 | } else { |
@@ -127,4 +126,4 @@ void TodayConfig::readConfig() { | |||
127 | CheckBoxAuto->setChecked( m_autoStart ); | 126 | CheckBoxAuto->setChecked( m_autoStart ); |
128 | m_autoStartTimer = cfg.readEntry( "autostartdelay", "0" ); | 127 | m_autoStartTimer = cfg.readNumEntry( "autostartdelay", 0 ); |
129 | SpinBoxTime->setValue( m_autoStartTimer.toInt() ); | 128 | SpinBoxTime->setValue( m_autoStartTimer ); |
130 | 129 | ||
@@ -170,3 +169,6 @@ void TodayConfig::writeConfig() { | |||
170 | m_autoStartTimer = SpinBoxTime->value(); | 169 | m_autoStartTimer = SpinBoxTime->value(); |
171 | cfg.readEntry( "autostartdelay", m_autoStartTimer ); | 170 | cfg.writeEntry( "autostartdelay", m_autoStartTimer ); |
171 | |||
172 | // set autostart settings | ||
173 | setAutoStart(); | ||
172 | } | 174 | } |