6464d5f853
This was actually the line of code that the mixer dock widget crash was triggered by. This technically shouldn't ever be null, but better to be safe than sorry.
21 lines
369 B
C++
21 lines
369 B
C++
#include "window-dock-browser.hpp"
|
|
#include <QCloseEvent>
|
|
|
|
void BrowserDock::closeEvent(QCloseEvent *event)
|
|
{
|
|
OBSDock::closeEvent(event);
|
|
|
|
if (!event->isAccepted()) {
|
|
return;
|
|
}
|
|
|
|
static int panel_version = -1;
|
|
if (panel_version == -1) {
|
|
panel_version = obs_browser_qcef_version();
|
|
}
|
|
|
|
if (panel_version >= 2 && !!cefWidget) {
|
|
cefWidget->closeBrowser();
|
|
}
|
|
}
|