source: trunk/dports/www/QupZilla/files/patch-src-lib-history-historymenu.cpp.diff @ 126330

Last change on this file since 126330 was 126330, checked in by ryandesign@…, 6 years ago

QupZilla: fix more runtime crashes

File size: 641 bytes
  • src/lib/history/historymenu.cpp

    Fix crash when clicking History menu with no browser window
    https://github.com/QupZilla/qupzilla/issues/1487
    https://github.com/QupZilla/qupzilla/commit/b6f913dafe2fce92f406ec3f21970df2151bde8d
    old new void HistoryMenu::showHistoryManager() 
    8181void HistoryMenu::aboutToShow()
    8282{
    8383    // Set enabled states for Back/Forward actions according to current WebView
    84     TabbedWebView* view = m_window->weView();
     84    TabbedWebView* view = m_window ? m_window->weView() : 0;
    8585
    8686    if (view) {
    8787        actions().at(0)->setEnabled(view->history()->canGoBack());
Note: See TracBrowser for help on using the repository browser.