From 6390eb215b28e95419b29b6556091c719f118d71 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 7 Oct 2014 11:04:31 +0200 Subject: [PATCH] Mac: Fix crash on startup due to invalid m_mainMenu pointer Closes #1485 --- src/lib/app/browserwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/app/browserwindow.cpp b/src/lib/app/browserwindow.cpp index 99a62b710..57926dbd8 100644 --- a/src/lib/app/browserwindow.cpp +++ b/src/lib/app/browserwindow.cpp @@ -361,6 +361,8 @@ void BrowserWindow::setupMenu() else { macMainMenu->setWindow(this); } + + m_mainMenu = macMainMenu; #else setMenuBar(new MenuBar(this));