Fixed logic to remove the tabs not close them.

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2021-07-07 16:37:25 -05:00
parent cc437d7370
commit 3037837be6
@@ -3297,7 +3297,12 @@ namespace AzQtComponents
continue;
}
tabWidget->closeTabs();
// Remove the tabs from the tab widget (we don't actually want to close them, which could delete them at this point)
int numTabs = tabWidget->count();
for (int i = 0; i < numTabs; ++i)
{
tabWidget->removeTab(0);
}
}
// Restore the floating windows