exportdialog: use wait for close code from previous commit when closing the

export dialog
This commit is contained in:
itsmattkc
2020-01-22 19:51:57 +11:00
parent 24f7eeb210
commit a3c932693a
3 changed files with 17 additions and 7 deletions
+7
View File
@@ -258,6 +258,13 @@ void ExportDialog::accept()
QMetaObject::invokeMethod(exporter, "StartExporting", Qt::QueuedConnection);
}
void ExportDialog::closeEvent(QCloseEvent *e)
{
preview_viewer_->ConnectViewerNode(nullptr);
QDialog::closeEvent(e);
}
void ExportDialog::BrowseFilename()
{
const ExportFormat& current_format = formats_.at(format_combobox_->currentIndex());