diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-21 20:07:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-21 22:00:03 +0200 |
commit | ca637f21a30b45869a447b8b88d7b2a06a1b5a68 (patch) | |
tree | 11d58c4d058ad2f446f461e926e3164576fbb551 | |
parent | 99c4a8bee6d8a061064113b31236c2c16f37d238 (diff) |
set wait on the dialog, not the page parent
Change-Id: If782e774fee91a427d4bda575b2f404fd636f534
Reviewed-on: https://gerrit.libreoffice.org/79319
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index a90ef52b916a..54d7894d4fe9 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -894,9 +894,8 @@ void TPGalleryThemeProperties::DoPreview() if (!m_aWndPreview.SetGraphic(_aURL)) { - GetParent()->LeaveWait(); + weld::WaitObject aWaitObject(GetDialogFrameWeld()); ErrorHandler::HandleError(ERRCODE_IO_NOTEXISTSPATH, GetDialogFrameWeld()); - GetParent()->EnterWait(); } #if HAVE_FEATURE_AVMEDIA else if( ::avmedia::MediaWindow::isMediaURL( _aURL.GetMainURL( INetURLObject::DecodeMechanism::Unambiguous ), "" ) ) |