Browse Source

UI: Unblock encoder comboboxes signals before change

Signals are blocked while encoder is enforced, those need to be
unblocked before setting the new encoder.
tytan652 2 years ago
parent
commit
10880d6b21
1 changed files with 2 additions and 0 deletions
  1. 2 0
      UI/window-basic-settings-stream.cpp

+ 2 - 0
UI/window-basic-settings-stream.cpp

@@ -1481,6 +1481,7 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
 		}
 		}
 
 
 		idx = ui->advOutEncoder->findData(lastAdvEnc);
 		idx = ui->advOutEncoder->findData(lastAdvEnc);
+		s2.unblock();
 		ui->advOutEncoder->setCurrentIndex(idx);
 		ui->advOutEncoder->setCurrentIndex(idx);
 	}
 	}
 
 
@@ -1494,6 +1495,7 @@ void OBSBasicSettings::ResetEncoders(bool streamOnly)
 		}
 		}
 
 
 		idx = ui->simpleOutStrEncoder->findData(lastEnc);
 		idx = ui->simpleOutStrEncoder->findData(lastEnc);
+		s1.unblock();
 		ui->simpleOutStrEncoder->setCurrentIndex(idx);
 		ui->simpleOutStrEncoder->setCurrentIndex(idx);
 	}
 	}
 }
 }