citra_qt: Fixed a bug when dumping dialog is cancelled or closed

This commit is contained in:
zhupengfei 2020-02-23 12:25:48 +08:00
parent c38202bd30
commit 8868d4db86
No known key found for this signature in database
GPG key ID: DD129E108BD09378

View file

@ -1821,6 +1821,7 @@ void GMainWindow::OnCaptureScreenshot() {
void GMainWindow::OnStartVideoDumping() { void GMainWindow::OnStartVideoDumping() {
DumpingDialog dialog(this); DumpingDialog dialog(this);
if (dialog.exec() != QDialog::DialogCode::Accepted) { if (dialog.exec() != QDialog::DialogCode::Accepted) {
ui.action_Dump_Video->setChecked(false);
return; return;
} }
const auto path = dialog.GetFilePath(); const auto path = dialog.GetFilePath();