Fix close button enable state not being restored with LayoutSaver

Fixes #137
This commit is contained in:
Sergio Martins
2021-01-13 23:06:41 +00:00
parent 7ddb95a417
commit 585c0d64ed
2 changed files with 3 additions and 2 deletions

View File

@@ -3456,7 +3456,7 @@ void TestDocks::tst_restoreSimplest()
void TestDocks::tst_restoreNonClosable()
{
// Tests that restoring state also restores the options
// Tests that restoring state also restores the Option_NotClosable option
{
// Basic case:
@@ -3501,7 +3501,6 @@ void TestDocks::tst_restoreNonClosable()
tb = dock2->frame()->actualTitleBar();
QVERIFY(tb->isVisible());
QEXPECT_FAIL("", "Bug #137", Continue);
QVERIFY(!tb->closeButtonEnabled());
}
}