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

Closes #1487
remotes/origin/falkon
David Rosca 12 years ago
parent 21fb7bff31
commit b6f913dafe
  1. 2
      src/lib/history/historymenu.cpp

@ -81,7 +81,7 @@ void HistoryMenu::showHistoryManager()
void HistoryMenu::aboutToShow()
{
// 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) {
actions().at(0)->setEnabled(view->history()->canGoBack());

Loading…
Cancel
Save