From 0713945e0258a4ae382d0883f57e134160e2e4a7 Mon Sep 17 00:00:00 2001 From: tao wang Date: Mon, 14 Nov 2022 18:16:33 +0800 Subject: [PATCH] FIX:Fixed crash issue on mac without plugin Change-Id: I19f82037c58d61c3286f6a029b007e1199fb87cf --- src/slic3r/GUI/MainFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 5a48b140ad..883ff49150 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -2370,7 +2370,7 @@ void MainFrame::init_menubar_as_editor() m_menubar->Append(helpMenu, wxString::Format("&%s", _L("Help"))); SetMenuBar(m_menubar); - if (wxGetApp().getAgent()->is_user_login()) { + if (wxGetApp().getAgent() && wxGetApp().getAgent()->is_user_login()) { int identifier; int result = wxGetApp().getAgent()->get_user_info(&identifier); auto publish_identifier = identifier & 1;