summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-21 20:07:18 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2019-10-08 11:40:42 +0200
commitd7dda384405487ae7edb3519201222cb12c08e26 (patch)
tree66f855e9fb8ea96038b19b4ff6f4a4db09c03b6e
parenttdf#83618 Make line spacing values agree (diff)
downloadcore-d7dda384405487ae7edb3519201222cb12c08e26.tar.gz
core-d7dda384405487ae7edb3519201222cb12c08e26.zip
set wait on the dialog, not the page parent
Change-Id: If782e774fee91a427d4bda575b2f404fd636f534 Reviewed-on: https://gerrit.libreoffice.org/79320 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 799440789bb2..18b16b9c227a 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -898,9 +898,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 ), "" ) )