Explorar o código

UI: Close remux output before showing dialog

Richard Stanway %!s(int64=7) %!d(string=hai) anos
pai
achega
5ed235306e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      UI/window-remux.cpp

+ 2 - 1
UI/window-remux.cpp

@@ -200,11 +200,12 @@ void OBSRemux::updateProgress(float percent)
 
 void OBSRemux::remuxFinished(bool success)
 {
+	worker->job.reset();
+
 	OBSMessageBox::information(this, QTStr("Remux.FinishedTitle"),
 			success ?
 			QTStr("Remux.Finished") : QTStr("Remux.FinishedError"));
 
-	worker->job.reset();
 	ui->progressBar->setVisible(false);
 	ui->buttonBox->button(QDialogButtonBox::Ok)->
 			setEnabled(true);