exporter: add ability to cancel exports (including a confirm to cancel if the

user closes the dialog mid-export)
This commit is contained in:
itsmattkc
2020-03-03 02:37:18 +11:00
parent 02909c6ba9
commit 0f5cd40c45
7 changed files with 112 additions and 30 deletions
+9 -3
View File
@@ -31,8 +31,10 @@ bool OpenGLBackend::InitInternal()
if (!proxy_->Init()) {
proxy_thread->quit();
proxy_thread->wait();
delete proxy_thread;
delete proxy_;
proxy_thread->deleteLater();
proxy_->deleteLater();
proxy_ = nullptr;
return false;
}
@@ -54,7 +56,11 @@ bool OpenGLBackend::InitInternal()
void OpenGLBackend::CloseInternal()
{
if (proxy_) {
delete proxy_;
proxy_->thread()->quit();
proxy_->thread()->wait();
proxy_->thread()->deleteLater();
proxy_->deleteLater();
proxy_ = nullptr;
}