summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2024-04-18 18:44:03 +0300
committerDenis Kozadaev <denis@dilos.org>2024-04-18 19:33:37 +0300
commita6f3e3763e856470fd695cb1555a02b2a5747c76 (patch)
treea58353498de6282f8f1bfb6e6e8ae93018c271c9
parent1d22724f2e1b9568070113c6c825e6f145ae34df (diff)
downloadtdepim-a6f3e3763e856470fd695cb1555a02b2a5747c76.tar.gz
tdepim-a6f3e3763e856470fd695cb1555a02b2a5747c76.zip
kmail: Disable message actions due to a folder is loadingdisable-actions-due-to-folder-loading
Signed-off-by: Denis Kozadaev <denis@dilos.org>
-rw-r--r--kmail/kmmainwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kmail/kmmainwidget.cpp b/kmail/kmmainwidget.cpp
index bdae84d22..e438ee6d8 100644
--- a/kmail/kmmainwidget.cpp
+++ b/kmail/kmmainwidget.cpp
@@ -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;