mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-07 04:41:43 +00:00
Default to deleting windows from ToolWindowManager when closed
This commit is contained in:
1 parent
614c15d669
commit
097b93ce9c
5 files changed
+22
-17
No files matched your search
@@ -270,6 +270,7 @@ void ToolWindowManager::removeToolWindow(QWidget *toolWindow) {
|
||||
moveToolWindow(toolWindow, NoArea);
|
||||
m_toolWindows.removeOne(toolWindow);
|
||||
m_toolWindowProperties.remove(toolWindow);
|
||||
delete toolWindow;
|
||||
}
|
||||
|
||||
QWidget* ToolWindowManager::createToolWindow(const QString& objectName)
|
||||
@@ -790,7 +791,11 @@ void ToolWindowManager::tabCloseRequested(int index) {
|
||||
qWarning("unknown tab in tab widget");
|
||||
return;
|
||||
}
|
||||
hideToolWindow(toolWindow);
|
||||
|
||||
if(toolWindowProperties(toolWindow) & ToolWindowManager::HideOnClose)
|
||||
hideToolWindow(toolWindow);
|
||||
else
|
||||
removeToolWindow(toolWindow);
|
||||
}
|
||||
|
||||
void ToolWindowManager::windowTitleChanged(const QString &title) {
|
||||
|
||||
Reference in new issue
Block a user