Browse Source

UI: Save custom browser docks with docks data

When saving custom browser docks, docks properties are used rather
than actions properties.
tytan652 3 years ago
parent
commit
2a0e3c0c9b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      UI/window-extra-browsers.cpp

+ 3 - 3
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)},
 		};