Fix possible crash in export panel management.

This commit is contained in:
John Preston 2021-06-24 11:56:59 +04:00
parent ea3dab4a06
commit 6b62ec97c6

View file

@ -153,11 +153,15 @@ PanelController::~PanelController() {
if (_saveSettingsTimer.isActive()) {
saveSettings();
}
_panel->destroyLayer();
if (_panel) {
_panel->destroyLayer();
}
}
void PanelController::activatePanel() {
_panel->showAndActivate();
if (_panel) {
_panel->showAndActivate();
}
}
void PanelController::createPanel() {