[Libreoffice-commits] core.git: vcl/unx

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Feb 21 09:13:23 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 30e7c7f2289cd59c36c00ba4defc52bf189ef77d
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Feb 20 17:33:57 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Feb 21 10:12:56 2019 +0100

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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;
     }
 


More information about the Libreoffice-commits mailing list