diff --git a/kmail/kmreaderwin.cpp b/kmail/kmreaderwin.cpp --- a/kmail/kmreaderwin.cpp +++ b/kmail/kmreaderwin.cpp @@ -747,7 +747,7 @@ { if ( !item.isValid() ) return; - KMTrashMsgCommand *command = new KMTrashMsgCommand( item.parentCollection(), item, -1 ); + KMTrashMsgCommand *command = new KMTrashMsgCommand( MailCommon::Util::parentCollectionFromItem(item), item, -1 ); command->start(); }