Fix crash that could occur when the user changed the "Custom stream player URI Scheme" setting if the user had closed down and splits in the application runtime (#2592)

This commit is contained in:
pajlada
2021-04-17 11:55:44 +02:00
committed by GitHub
parent 032faabcb0
commit 8641435142
2 changed files with 10 additions and 6 deletions
+8 -6
View File
@@ -314,12 +314,14 @@ void SplitHeader::initializeLayout()
}
});
getSettings()->customURIScheme.connect([this] {
if (const auto drop = this->dropdownButton_)
{
drop->setMenu(this->createMainMenu());
}
});
getSettings()->customURIScheme.connect(
[this] {
if (const auto drop = this->dropdownButton_)
{
drop->setMenu(this->createMainMenu());
}
},
this->managedConnections_);
layout->setMargin(0);
layout->setSpacing(0);