mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Implement global hook feature for Qt
This commit is contained in:
@@ -1587,6 +1587,14 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
if(RENDERDOC_IsGlobalHookActive())
|
||||
{
|
||||
RDDialog::critical(this, tr("Global hook active"),
|
||||
tr("Cannot close RenderDoc while global hook is active."));
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
if(!PromptCloseLog())
|
||||
{
|
||||
event->ignore();
|
||||
|
||||
Reference in New Issue
Block a user