From 2a0e3c0c9b8b7e81a58c20aee291a1b19de56b4f Mon Sep 17 00:00:00 2001 From: tytan652 Date: Sun, 20 Mar 2022 15:24:49 +0100 Subject: [PATCH] UI: Save custom browser docks with docks data When saving custom browser docks, docks properties are used rather than actions properties. --- UI/window-extra-browsers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/window-extra-browsers.cpp b/UI/window-extra-browsers.cpp index 553cdb6e5..9387d0b88 100644 --- a/UI/window-extra-browsers.cpp +++ b/UI/window-extra-browsers.cpp @@ -491,11 +491,11 @@ void OBSBasic::SaveExtraBrowserDocks() { Json::array array; for (int i = 0; i < extraBrowserDocks.size(); i++) { - QAction *action = extraBrowserDockActions[i].data(); + QDockWidget *dock = extraBrowserDocks[i].data(); QString url = extraBrowserDockTargets[i]; - QString uuid = action->property("uuid").toString(); + QString uuid = dock->property("uuid").toString(); Json::object obj{ - {"title", QT_TO_UTF8(action->text())}, + {"title", QT_TO_UTF8(dock->windowTitle())}, {"url", QT_TO_UTF8(url)}, {"uuid", QT_TO_UTF8(uuid)}, };