mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-20 11:01:08 +00:00
Add checks of any current captures or temp logs when closing main window
This commit is contained in:
1 parent
46a86dce92
commit
aa8139fcb4
2 files changed
+23
No files matched your search
@@ -973,6 +973,27 @@ void MainWindow::loadLayout_triggered()
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
for(LiveCapture *live : m_LiveCaptures)
|
||||
{
|
||||
if(!live->checkAllowClose())
|
||||
{
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(!PromptCloseLog())
|
||||
{
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
for(LiveCapture *live : m_LiveCaptures)
|
||||
{
|
||||
live->cleanItems();
|
||||
live->close();
|
||||
}
|
||||
|
||||
SaveLayout(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user