From ea42621c6e8f4147827828c871046cf47ef76de8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 12 Aug 2021 16:01:51 +0100 Subject: Resolves: tdf#143843 disable the recently-used widget during load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We show a busy-cursor but the widget can still be interacted with so another document can be launched by clicking on another recently-used item while the first one is still loading, and the recently-used widget isn't prepared for this scenario so the second to complete load will crash. Disable the recently-used widget when its cursor is set to busy, and in the (unlikely) case that the load doesn't complete normally (missing document or load filter error) and the recently-used widget still exists and its cursor is unset from busy then reenable it for user input at that point. Change-Id: I8f4487f3dbede14c9778e49442366bd9445f1d63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120399 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/control/recentdocsview.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sfx2/source/control/recentdocsview.cxx') diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index 3493df385120..c3d83741033d 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -430,6 +430,7 @@ IMPL_LINK( RecentDocsView, ExecuteHdl_Impl, void*, p, void ) { pLoadRecentFile->pView->DispatchedLoadRecentUsedFile(); pLoadRecentFile->pView->SetPointer(PointerStyle::Arrow); + pLoadRecentFile->pView->Enable(); } delete pLoadRecentFile; -- cgit