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:
Marco Martin 2014-06-04 18:44:28 +02:00
parent b6ac8ded88
commit 1ce72838a5

View File

@ -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());