Fix MDI window placement after Qt5 upgrade

This commit is contained in:
Gaute Lindkvist 2018-11-27 15:25:31 +01:00
parent b097c8c9b7
commit afbe84997e

View File

@ -1109,11 +1109,6 @@ void RiuMainWindow::addViewer(QWidget* viewer, const RimMdiWindowGeometry& windo
initialStateMaximized = true; initialStateMaximized = true;
} }
subWin->show();
// Move and resize must be done after window is visible
// If not, the position and size of the window is different to specification (Windows 7)
// Might be a Qt bug, must be tested on Linux
if (subWindowPos.x() > -1) if (subWindowPos.x() > -1)
{ {
subWin->move(subWindowPos); subWin->move(subWindowPos);