patch Christian's patch.

CCMAIL: cza@sixxac.com

svn path=/branches/KDE/3.5/kdepim/; revision=583814
wilder-work
Allen Winter 20 years ago
parent 121ebeacf3
commit 3538f237e4
  1. 8
      kmreadermainwin.cpp

@ -130,15 +130,17 @@ void KMReaderMainWin::slotTrashMsg()
KMFolder* parent;
int index;
KMMsgDict::instance()->getLocation( mMsg->getMsgSerNum(), &parent, &index );
if (parent) {
if ( parent && !parent->isTrash() ) {
// open the folder (ref counted)
parent->open();
KMMessage *msg = parent->getMsg( index );
if (msg) {
// now delete the msg and close this window
KMDeleteMsgCommand *command = new KMDeleteMsgCommand( parent, msg );
command->start();
close();
}
parent->close();
}
close();
}
//-----------------------------------------------------------------------------

Loading…
Cancel
Save