mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
HistoryMenu: Don't crash in aboutToShow() when m_window is null
Closes #1487
This commit is contained in:
parent
21fb7bff31
commit
b6f913dafe
@ -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…
Reference in New Issue
Block a user