diff --git a/tests/tst_docks.cpp b/tests/tst_docks.cpp index 3dc11d20..3aee0a8d 100644 --- a/tests/tst_docks.cpp +++ b/tests/tst_docks.cpp @@ -3539,7 +3539,6 @@ void TestDocks::tst_restoreCrash() } // Restore - qDebug() << Q_FUNC_INFO << "Restoring"; auto m = createMainWindow({}, {}, "tst_restoreCrash"); auto layout = m->multiSplitter(); auto dock1 = createDockWidget("dock1", new QPushButton("one")); diff --git a/tests/utils.cpp b/tests/utils.cpp index 4577efac..3ff3fc2a 100644 --- a/tests/utils.cpp +++ b/tests/utils.cpp @@ -44,6 +44,9 @@ KDDockWidgets::Tests::createMainWindow(QSize sz, KDDockWidgets::MainWindowOption static int count = 0; count++; + if (!sz.isValid()) + sz = QSize(1000, 1000); + const QString mainWindowName = name.isEmpty() ? QStringLiteral("MyMainWindow%1").arg(count) : name;