Browse Source

Fix crash with popup after closing tab

master
Dorian 6 years ago
parent
commit
4e1da1aad4
  1. 2
      k-meleon/app/BrowserFrmTab.cpp

2
k-meleon/app/BrowserFrmTab.cpp

@ -37,6 +37,8 @@ public:
return mpBrowserView->GetBrowserWrapper();
CBrowserTab* tab = ((CBrowserFrmTab*)mpBrowserFrame)->CreateBrowserTab();
if (!tab) return NULL;
if ( !theApp.preferences.GetBool("kmeleon.tabs.loadDivertedInBackground", FALSE)
&& mpBrowserView == mpBrowserFrame->GetActiveView())
((CBrowserFrmTab*)mpBrowserFrame)->SetActiveBrowser(tab);

Loading…
Cancel
Save