author | zautrix <zautrix> | 2005-01-24 18:27:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-24 18:27:06 (UTC) |
commit | bb33b559609356149ae51cb50c081b3e82aecafb (patch) (unidiff) | |
tree | 4878aa5887bf1c539845ce9c4e5470eea94d41cc /kmicromail/opiemail.cpp | |
parent | 77f93c632b66b5c8d92e4c63330362272ca1fc40 (diff) | |
download | kdepimpi-bb33b559609356149ae51cb50c081b3e82aecafb.zip kdepimpi-bb33b559609356149ae51cb50c081b3e82aecafb.tar.gz kdepimpi-bb33b559609356149ae51cb50c081b3e82aecafb.tar.bz2 |
pixmap update fix
-rw-r--r-- | kmicromail/opiemail.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 760e3b0..68f0eb3 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -406,25 +406,27 @@ void OpieMail::displayMail() | |||
406 | connect( &readMail,SIGNAL( showNextMail(ViewMail *) ), this, SLOT( displayNextMail(ViewMail *) ) ); | 406 | connect( &readMail,SIGNAL( showNextMail(ViewMail *) ), this, SLOT( displayNextMail(ViewMail *) ) ); |
407 | connect( &readMail,SIGNAL( deleteAndDisplayNextMail(ViewMail *) ), this, SLOT(deleteAndDisplayNextMail(ViewMail *) ) ); | 407 | connect( &readMail,SIGNAL( deleteAndDisplayNextMail(ViewMail *) ), this, SLOT(deleteAndDisplayNextMail(ViewMail *) ) ); |
408 | connect( &readMail,SIGNAL( signalDownloadMail() ), this, SLOT( slotDownloadMail() ) ); | 408 | connect( &readMail,SIGNAL( signalDownloadMail() ), this, SLOT( slotDownloadMail() ) ); |
409 | 409 | ||
410 | readMail.exec(); | 410 | readMail.exec(); |
411 | 411 | ||
412 | if ( readMail.deleted ) | 412 | if ( readMail.deleted ) |
413 | { | 413 | { |
414 | folderView->refreshCurrent(); | 414 | folderView->refreshCurrent(); |
415 | } | 415 | } |
416 | else | 416 | else |
417 | { | 417 | { |
418 | ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); | 418 | QListViewItem*item = mailView->currentItem(); |
419 | if (item) | ||
420 | ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); | ||
419 | } | 421 | } |
420 | } | 422 | } |
421 | void OpieMail::slotGetAllMail() | 423 | void OpieMail::slotGetAllMail() |
422 | { | 424 | { |
423 | QListViewItem * item = folderView->firstChild(); | 425 | QListViewItem * item = folderView->firstChild(); |
424 | while ( item ){ | 426 | while ( item ){ |
425 | ((AccountViewItem *)item)->contextMenuSelected( 101 ); | 427 | ((AccountViewItem *)item)->contextMenuSelected( 101 ); |
426 | item = item->nextSibling (); | 428 | item = item->nextSibling (); |
427 | } | 429 | } |
428 | } | 430 | } |
429 | void OpieMail::slotGetMail() | 431 | void OpieMail::slotGetMail() |
430 | { | 432 | { |