mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17: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:
@@ -120,6 +120,13 @@ void SeparatePanel::setHideOnDeactivate(bool hideOnDeactivate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SeparatePanel::showAndActivate() {
|
void SeparatePanel::showAndActivate() {
|
||||||
|
if (isHidden()) {
|
||||||
|
while (const auto widget = QApplication::activePopupWidget()) {
|
||||||
|
if (!widget->close()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
toggleOpacityAnimation(true);
|
toggleOpacityAnimation(true);
|
||||||
raise();
|
raise();
|
||||||
setWindowState(windowState() | Qt::WindowActive);
|
setWindowState(windowState() | Qt::WindowActive);
|
||||||
|
Reference in New Issue
Block a user