kmail: Disable message actions due to a folder is loading

Signed-off-by: Denis Kozadaev <denis@dilos.org>
disable-actions-due-to-folder-loading
Denis Kozadaev 7 months ago
parent 1d22724f2e
commit a6f3e3763e

@ -2033,6 +2033,11 @@ void KMMainWidget::folderSelected( KMFolder* aFolder, bool forceJumpToUnread )
this, TQ_SLOT( updateMarkAsReadAction() ) );
disconnect( mFolder, TQ_SIGNAL( msgRemoved( KMFolder * ) ),
this, TQ_SLOT( updateMarkAsReadAction() ) );
/* Disable all possible actions due to mFolder is loading */
mFolder = nullptr;
mHeaders->setFolder( 0 );
updateFolderMenu();
updateMessageActions();
}
mFolder = aFolder;

Loading…
Cancel
Save