Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index 2deb96f..97c305c 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp | |||
@@ -210,6 +210,7 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f ) | |||
210 | channel = new QCopChannel( "QPE/Datebook", this ); | 210 | channel = new QCopChannel( "QPE/Datebook", this ); |
211 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), | 211 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), |
212 | this, SLOT(receive(const QCString&, const QByteArray&)) ); | 212 | this, SLOT(receive(const QCString&, const QByteArray&)) ); |
213 | qDebug("olle\n"); | ||
213 | #endif | 214 | #endif |
214 | #endif | 215 | #endif |
215 | 216 | ||
@@ -230,12 +231,10 @@ void DateBook::receive( const QCString &msg, const QByteArray &data ) | |||
230 | viewMonth(); | 231 | viewMonth(); |
231 | } | 232 | } |
232 | else if (msg == "editEvent(int)") { | 233 | else if (msg == "editEvent(int)") { |
233 | /* Not yet working... | 234 | int uid; |
234 | int uid; | 235 | stream >> uid; |
235 | stream >> uid; | 236 | Event e=db->getEvent(uid); |
236 | Event e=db->getEvent(uid); | 237 | editEvent(e); |
237 | editEvent(e); | ||
238 | */ | ||
239 | } | 238 | } |
240 | } | 239 | } |
241 | 240 | ||
@@ -401,6 +400,7 @@ void DateBook::editEvent( const Event &e ) | |||
401 | #endif | 400 | #endif |
402 | while (editDlg.exec() ) { | 401 | while (editDlg.exec() ) { |
403 | Event newEv = entry->event(); | 402 | Event newEv = entry->event(); |
403 | newEv.setUid(e.uid()); // FIXME: Hack not to clear uid | ||
404 | QString error = checkEvent(newEv); | 404 | QString error = checkEvent(newEv); |
405 | if (!error.isNull()) { | 405 | if (!error.isNull()) { |
406 | if (QMessageBox::warning(this, "error box", | 406 | if (QMessageBox::warning(this, "error box", |