kdeui: do not change the KDialog size on details widget visibility change

because the details widget may be shown, the dialog manually resized and
when the details widget is hidden the manually set size gets overriden -
the dialog size should remain the same after manual resize!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-12 20:47:47 +03:00
parent b4fc8cf48b
commit 4ed10bdd76

View file

@ -840,8 +840,6 @@ void KDialog::setDetailsWidgetVisible(bool visible)
d->mDetailsWidget->show(); d->mDetailsWidget->show();
adjustSize();
if (layout()) { if (layout()) {
layout()->activate(); layout()->activate();
layout()->setEnabled(true); layout()->setEnabled(true);
@ -855,7 +853,6 @@ void KDialog::setDetailsWidgetVisible(bool visible)
if (layout()) { if (layout()) {
layout()->activate(); layout()->activate();
adjustSize();
} }
} }