summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-02 11:27:35 (UTC)
committer harlekin <harlekin>2002-10-02 11:27:35 (UTC)
commitff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38 (patch) (unidiff)
tree6fab13be118de545153d3081dba989864ba3b57c
parent8f904d99e7b6e04b6043226a63f6c417171a7cad (diff)
downloadopie-ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38.zip
opie-ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38.tar.gz
opie-ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38.tar.bz2
fixed broken autostart handling
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/TODO6
-rw-r--r--core/pim/today/todayconfig.cpp14
-rw-r--r--core/pim/today/todayconfig.h2
3 files changed, 15 insertions, 7 deletions
diff --git a/core/pim/today/TODO b/core/pim/today/TODO
index 6634cad..49503bd 100644
--- a/core/pim/today/TODO
+++ b/core/pim/today/TODO
@@ -1,4 +1,10 @@
1TODO for today: 1TODO for today:
2 2
3- all icons clickable
4
5- retail rom mail plugin (z)
6
7- autostart on retail rom (Z)
8
3* show "upcoming appointents the next days 9* show "upcoming appointents the next days
4 10
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
@@ -105,10 +105,9 @@ void TodayConfig::setAutoStart() {
105 Config cfg( "today" ); 105 Config cfg( "today" );
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)" );
110 e << QString( "add" ); 109 e << QString( "add" );
111 e << QString( "today" ); 110 e << QString( "today" );
112 e << m_autoStartTimer; 111 e << QString("%1").arg( m_autoStartTimer );
113 } else { 112 } else {
114 QCopEnvelope e( "QPE/System", "autoStart(QString,QString)" ); 113 QCopEnvelope e( "QPE/System", "autoStart(QString,QString)" );
@@ -126,6 +125,6 @@ void TodayConfig::readConfig() {
126 m_autoStart = cfg.readNumEntry( "autostart", 1 ); 125 m_autoStart = cfg.readNumEntry( "autostart", 1 );
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
131 cfg.setGroup( "Plugins" ); 130 cfg.setGroup( "Plugins" );
@@ -169,5 +168,8 @@ void TodayConfig::writeConfig() {
169 cfg.writeEntry( "autostart", m_autoStart ); 168 cfg.writeEntry( "autostart", m_autoStart );
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}
173 175
diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h
index 7c261bd..f23b850 100644
--- a/core/pim/today/todayconfig.h
+++ b/core/pim/today/todayconfig.h
@@ -55,5 +55,5 @@ private:
55 55
56 int m_autoStart; 56 int m_autoStart;
57 QString m_autoStartTimer; 57 int m_autoStartTimer;
58 QStringList m_excludeApplets; 58 QStringList m_excludeApplets;
59 bool m_applets_changed; 59 bool m_applets_changed;