Remove hack, it does more harm than good. :/

CCMAIL:mgraesslin@kde.org
This commit is contained in:
Sebastian Kügler 2013-12-17 02:17:46 +01:00
parent 04fd5d719a
commit 4c17887657

View File

@ -135,14 +135,7 @@ void DialogProxy::onVisibleChanged()
m_frameSvgItem->setEnabledBorders(Plasma::FrameSvg::NoBorder);
setPosition(screen()->availableGeometry().topLeft());
setGeometry(screen()->availableGeometry());
} else {
// FIXME: abuse of flags
// The dialog hiding is animated, keep it raised while it's animating
// This seems to be a bit of a hack, but as it works, let's use it for
// now and keep looking for a better solution.
setFlags(Qt::WindowStaysOnTopHint|m_flags);
//syncToMainItemSize();
setPosition(popupPosition(m_visualParent.data(), Qt::AlignCenter));
syncToMainItemSize();
}