Commit 115334d1 authored by Leander Schulten's avatar Leander Schulten

Fix Build: in controlitemdata.cpp a variable was not captured in a lambda (but it worked on clang)

parent 0bf96ffc
Pipeline #259282 passed with stage
in 11 minutes and 50 seconds
......@@ -378,7 +378,7 @@ void DimmerGroupControlItemData::initRemoteProperties() {
[this]() { propertyChangedForRemote("canEditMinMaxMapping", UserManagment::get()->getCurrentUser()->havePermission(UserManagment::CHANGE_MIN_MAX_MAPPING) ? "true" : "false"); });
const auto &mE = DMX::DMXChannelFilter::operationMetaEnum;
setRemotePropertyChangeCallback("maxOperation", [this](const QString &s) {
setRemotePropertyChangeCallback("maxOperation", [this, mE](const QString &s) {
if (UserManagment::get()->getCurrentUser()->havePermission(UserManagment::CHANGE_MIN_MAX_MAPPING)) {
auto data = s.toUtf8();
auto v = mE.keyToValue(data.data());
......@@ -389,7 +389,7 @@ void DimmerGroupControlItemData::initRemoteProperties() {
}
propertyChangedForRemote("maxOperation", mE.valueToKey(maxOperation));
});
setRemotePropertyChangeCallback("minOperation", [this](const QString &s) {
setRemotePropertyChangeCallback("minOperation", [this, mE](const QString &s) {
if (UserManagment::get()->getCurrentUser()->havePermission(UserManagment::CHANGE_MIN_MAX_MAPPING)) {
auto data = s.toUtf8();
auto v = mE.keyToValue(data.data());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment