From b5426b398aaf6740cab738d2769c1f640974809b Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 17 Feb 2024 23:26:07 +0100 Subject: [PATCH] Fill rename dialog with current name --- lib/utils/item-selection-helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/item-selection-helpers.cpp b/lib/utils/item-selection-helpers.cpp index f7b23e1b..49f50017 100644 --- a/lib/utils/item-selection-helpers.cpp +++ b/lib/utils/item-selection-helpers.cpp @@ -180,7 +180,7 @@ void ItemSelection::RenameItem() bool accepted = AdvSSNameDialog::AskForName( this, obs_module_text("AdvSceneSwitcher.windowTitle"), obs_module_text("AdvSceneSwitcher.item.newName"), name, - QString::fromStdString(name)); + QString::fromStdString(item->Name())); if (!accepted) { return; }