diff --git a/src/quick-access-dock.cpp b/src/quick-access-dock.cpp index 657991f..64dc833 100644 --- a/src/quick-access-dock.cpp +++ b/src/quick-access-dock.cpp @@ -207,12 +207,11 @@ void QuickAccessDock::SourceDestroyed() } } -void QuickAccessDock::SourceRename(obs_source_t *source, std::string newName, - std::string prevName) +void QuickAccessDock::SourceRename(obs_source_t *source) { // Dynamic sources are handled from scene item add/delete events if (_switchingSC || !_widget) { return; } - _widget->SourceRename(source, newName, prevName); + _widget->SourceRename(source); } diff --git a/src/quick-access-dock.hpp b/src/quick-access-dock.hpp index 99a30b3..be20d2d 100644 --- a/src/quick-access-dock.hpp +++ b/src/quick-access-dock.hpp @@ -34,8 +34,7 @@ class QuickAccessDock : public QWidget { void SourceCreated(obs_source_t *source); void SourceDestroyed(); - void SourceRename(obs_source_t *source, std::string newName, - std::string prevName); + void SourceRename(obs_source_t *source); void CleanupSourceHandlers(); private: diff --git a/src/quick-access-utility.cpp b/src/quick-access-utility.cpp index 771bdc3..a7c3937 100644 --- a/src/quick-access-utility.cpp +++ b/src/quick-access-utility.cpp @@ -75,15 +75,11 @@ void QuickAccessUtility::SourceRename(void *data, calldata_t *params) UNUSED_PARAMETER(data); obs_source_t *source = static_cast(calldata_ptr(params, "source")); - std::string newName = calldata_string(params, "new_name"); - std::string prevName = calldata_string(params, "prev_name"); QMetaObject::invokeMethod( - QCoreApplication::instance()->thread(), - [source, newName, prevName]() { + QCoreApplication::instance()->thread(), [source]() { for (auto &dock : qau->_docks) { if (dock) { - dock->SourceRename(source, newName, - prevName); + dock->SourceRename(source); } } }); diff --git a/src/quick-access.cpp b/src/quick-access.cpp index b39680e..6cbb5c2 100644 --- a/src/quick-access.cpp +++ b/src/quick-access.cpp @@ -1024,8 +1024,7 @@ void QuickAccess::RemoveNullSources() blog(LOG_INFO, "SIZE OF LIST AFTER: %i", _sourceList->count()); } -void QuickAccess::SourceRename(obs_source_t *source, std::string newName, - std::string prevName) +void QuickAccess::SourceRename(obs_source_t *source) { for (int i = 0; i < _sourceList->count(); i++) { QListWidgetItem *item = _sourceList->item(i); diff --git a/src/quick-access.hpp b/src/quick-access.hpp index d5a75e1..554b834 100644 --- a/src/quick-access.hpp +++ b/src/quick-access.hpp @@ -120,8 +120,7 @@ class QuickAccess : public QListWidget { static void ItemRemovedFromScene(void *data, calldata_t *params); void RemoveNullSources(); - void SourceRename(obs_source_t *source, std::string newName, - std::string prevName); + void SourceRename(obs_source_t *source); private: QuickAccessDock *_dock;