update size hints if enabled borders change
final size hints depend from enabled borders, so they have to be updated
This commit is contained in:
parent
b6ac8ded88
commit
1ce72838a5
@ -156,7 +156,16 @@ void DialogPrivate::syncBorders()
|
||||
}
|
||||
}
|
||||
|
||||
frameSvgItem->setEnabledBorders((Plasma::FrameSvg::EnabledBorder)borders);
|
||||
if (frameSvgItem->enabledBorders() != (Plasma::FrameSvg::EnabledBorder)borders) {
|
||||
frameSvgItem->setEnabledBorders((Plasma::FrameSvg::EnabledBorder)borders);
|
||||
|
||||
if (mainItemLayout) {
|
||||
updateMinimumWidth();
|
||||
updateMinimumHeight();
|
||||
updateMaximumWidth();
|
||||
updateMaximumHeight();
|
||||
}
|
||||
}
|
||||
|
||||
if (q->isVisible()) {
|
||||
DialogShadows::self()->addWindow(q, frameSvgItem->enabledBorders());
|
||||
|
Loading…
Reference in New Issue
Block a user