Diffstat (limited to 'libopie2/opiepim/ui/opimmainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libopie2/opiepim/ui/opimmainwindow.cpp b/libopie2/opiepim/ui/opimmainwindow.cpp index 8ce2062..058a428 100644 --- a/libopie2/opiepim/ui/opimmainwindow.cpp +++ b/libopie2/opiepim/ui/opimmainwindow.cpp | |||
@@ -114,25 +114,24 @@ void OPimMainWindow::appMessage( const QCString& cmd, const QByteArray& array ) | |||
114 | QByteArray array; | 114 | QByteArray array; |
115 | stream >> rtti; | 115 | stream >> rtti; |
116 | stream >> array; | 116 | stream >> array; |
117 | m_fallBack = record(rtti, array ); | 117 | m_fallBack = record(rtti, array ); |
118 | if (!m_fallBack) return; | 118 | if (!m_fallBack) return; |
119 | add( *m_fallBack ); | 119 | add( *m_fallBack ); |
120 | delete m_fallBack; | 120 | delete m_fallBack; |
121 | }else if ( cmd == "alarm(QDateTime,int)" ) { | 121 | }else if ( cmd == "alarm(QDateTime,int)" ) { |
122 | raise(); | 122 | raise(); |
123 | QDateTime dt; int uid; | 123 | QDateTime dt; int uid; |
124 | stream >> dt; | 124 | stream >> dt; |
125 | stream >> uid; | 125 | stream >> uid; |
126 | owarn << " Date: " << dt.toString() << " Uid: " << uid << "" << oendl; | ||
127 | QDateTime current = QDateTime::currentDateTime(); | 126 | QDateTime current = QDateTime::currentDateTime(); |
128 | if ( current.time().hour() != dt.time().hour() && current.time().minute() != dt.time().minute() ) | 127 | if ( current.time().hour() != dt.time().hour() && current.time().minute() != dt.time().minute() ) |
129 | return; | 128 | return; |
130 | doAlarm( dt, uid ); | 129 | doAlarm( dt, uid ); |
131 | needShow = true; | 130 | needShow = true; |
132 | } | 131 | } |
133 | 132 | ||
134 | if (needShow ) | 133 | if (needShow ) |
135 | QPEApplication::setKeepRunning(); | 134 | QPEApplication::setKeepRunning(); |
136 | } | 135 | } |
137 | /* implement the url scripting here */ | 136 | /* implement the url scripting here */ |
138 | void OPimMainWindow::setDocument( const QString& str) { | 137 | void OPimMainWindow::setDocument( const QString& str) { |