1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

HistoryMenu: Don't crash in aboutToShow() when m_window is null

Closes #1487
This commit is contained in:
David Rosca 2014-10-07 16:19:30 +02:00
parent 21fb7bff31
commit b6f913dafe

View File

@ -81,7 +81,7 @@ void HistoryMenu::showHistoryManager()
void HistoryMenu::aboutToShow() void HistoryMenu::aboutToShow()
{ {
// Set enabled states for Back/Forward actions according to current WebView // Set enabled states for Back/Forward actions according to current WebView
TabbedWebView* view = m_window->weView(); TabbedWebView* view = m_window ? m_window->weView() : 0;
if (view) { if (view) {
actions().at(0)->setEnabled(view->history()->canGoBack()); actions().at(0)->setEnabled(view->history()->canGoBack());