2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 06:07:45 +00:00

Fix export window size.

Fixes #24373.

SeparatePanel::show calls activePopupWidget::close,
activePopupWidget::close calls SeparatePanel::resizeEvents with strange values.
This commit is contained in:
John Preston 2022-04-19 12:02:54 +04:00
parent 9f2683a35b
commit e67192cdf0

View File

@ -120,6 +120,13 @@ void SeparatePanel::setHideOnDeactivate(bool hideOnDeactivate) {
}
void SeparatePanel::showAndActivate() {
if (isHidden()) {
while (const auto widget = QApplication::activePopupWidget()) {
if (!widget->close()) {
break;
}
}
}
toggleOpacityAnimation(true);
raise();
setWindowState(windowState() | Qt::WindowActive);