make sure the dialog is resized before showing
crash-- probably there is a bug in scenegraph when one calls show() of a 0,0 size wondow
This commit is contained in:
parent
7e96fe9000
commit
854ecdcf5b
@ -163,7 +163,9 @@ void DialogProxy::setVisible(const bool visible)
|
||||
{
|
||||
qDebug() << visible;
|
||||
QRect avail = QRect(400, 300, 1200, 800);
|
||||
|
||||
if (visible) {
|
||||
syncToMainItemSize();
|
||||
if (!m_visualParent.isNull()) {
|
||||
avail = m_visualParent.data()->window()->screen()->availableGeometry();
|
||||
if (location() == Plasma::FullScreen) {
|
||||
@ -172,7 +174,6 @@ void DialogProxy::setVisible(const bool visible)
|
||||
|
||||
} else {
|
||||
m_frameSvgItem->setEnabledBorders(Plasma::FrameSvg::AllBorders);
|
||||
syncToMainItemSize();
|
||||
QPoint p = popupPosition(m_visualParent.data(), Qt::AlignCenter);
|
||||
|
||||
int borders = Plasma::FrameSvg::AllBorders;
|
||||
|
Loading…
Reference in New Issue
Block a user