UI: Use OBSSourceLabel for VolControl
The OBSSourceLabel handles renaming of a source, so we don't have to use the rename signals for volume controls.
This commit is contained in:
parent
272a5edbaa
commit
b82a49e881
3 changed files with 4 additions and 20 deletions
|
|
@ -3339,11 +3339,6 @@ void OBSBasic::RenameSources(OBSSource source, QString newName,
|
|||
{
|
||||
RenameListValues(ui->scenes, newName, prevName);
|
||||
|
||||
for (size_t i = 0; i < volumes.size(); i++) {
|
||||
if (volumes[i]->GetName().compare(prevName) == 0)
|
||||
volumes[i]->SetName(newName);
|
||||
}
|
||||
|
||||
if (vcamConfig.type == VCamOutputType::SourceOutput &&
|
||||
prevName == QString::fromStdString(vcamConfig.source))
|
||||
vcamConfig.source = newName.toStdString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue