summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-20 17:33:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-21 10:12:56 +0100
commit30e7c7f2289cd59c36c00ba4defc52bf189ef77d (patch)
treeacc7772f6394e298fed884d85838ff88a56235f9 /vcl
parentd0cc649b8f1d47e6435186b7c0ed571a147fbcb6 (diff)
recovery dialogs legitimately don't have parents
Change-Id: I853a4471723c39bbdb8cf71409f518640b54cb83 Reviewed-on: https://gerrit.libreoffice.org/68110 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index a1b709b08b6a..1aa6a6ca36f0 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -2302,7 +2302,7 @@ struct DialogRunner
, m_pLoop(nullptr)
{
GtkWindow* pParent = gtk_window_get_transient_for(GTK_WINDOW(m_pDialog));
- GtkSalFrame* pFrame = GtkSalFrame::getFromWindow(pParent);
+ GtkSalFrame* pFrame = pParent ? GtkSalFrame::getFromWindow(pParent) : nullptr;
m_xFrameWindow = pFrame ? pFrame->GetWindow() : nullptr;
}