mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Add checks of any current captures or temp logs when closing main window
This commit is contained in:
@@ -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