Don't show expire setting when we can't delete message

Otherwise it expire in local and re-load it when we connect to server
(see bug on my kdab account).

svn path=/trunk/KDE/kdepim/; revision=1074755
wilder-work
Laurent Montel 16 years ago
parent 2e5606a73f
commit bb78ff0d51
  1. 2
      folderview.cpp

@ -1489,7 +1489,7 @@ void FolderView::fillContextMenuFolderServiceRelatedActions( KMenu *menu, Folder
if ( item->folderType() != FolderViewItem::Root ) // non account level folder
{
menu->addAction( mMainWidget->action( "folder_shortcut_command" ) );
if ( !folder->noContent() )
if ( !folder->noContent() && folder->canDeleteMessages())
menu->addAction( i18n("Expire..."), item, SLOT( slotShowExpiryProperties() ) );
// properties

Loading…
Cancel
Save