UI: Remove legacy Qt workarounds (Ubuntu 22.04)

This commit is contained in:
derrod
2024-08-18 03:10:29 +02:00
committed by Ryan Foster
parent b0e1eced04
commit 834c15e717
2 changed files with 1 additions and 22 deletions

View File

@@ -3787,14 +3787,7 @@ void OBSBasic::HideAudioControl()
if (!SourceMixerHidden(source)) {
SetSourceMixerHidden(source, true);
/* Due to a bug with QT 6.2.4, the version that's in the Ubuntu
* 22.04 ppa, hiding the audio mixer causes a crash, so defer to
* the next event loop to hide it. Doesn't seem to be a problem
* with newer versions of QT. */
QMetaObject::invokeMethod(this, "DeactivateAudioSource",
Qt::QueuedConnection,
Q_ARG(OBSSource, OBSSource(source)));
DeactivateAudioSource(source);
}
}