1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 12:23:53 +00:00

removed code that interfered with the default window size on Linux (Fixes #2568)

This commit is contained in:
Marc Zinnschlag 2015-05-30 12:05:35 +02:00
parent d7cd4203ad
commit 88d5aed62d

View file

@ -404,11 +404,7 @@ CSVDoc::View::View (ViewManager& viewManager, CSMDoc::Document *document, int to
width = std::max(width, 300); width = std::max(width, 300);
height = std::max(height, 300); height = std::max(height, 300);
// trick to get the window decorations and their sizes resize (width, height);
show();
hide();
resize (width - (frameGeometry().width() - geometry().width()),
height - (frameGeometry().height() - geometry().height()));
mSubViewWindow.setDockOptions (QMainWindow::AllowNestedDocks); mSubViewWindow.setDockOptions (QMainWindow::AllowNestedDocks);