summaryrefslogtreecommitdiff
path: root/src/config/shared/workspace/WorkspaceRuleManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/shared/workspace/WorkspaceRuleManager.cpp')
-rw-r--r--src/config/shared/workspace/WorkspaceRuleManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/shared/workspace/WorkspaceRuleManager.cpp b/src/config/shared/workspace/WorkspaceRuleManager.cpp
index 4c2c2b90..04b94a53 100644
--- a/src/config/shared/workspace/WorkspaceRuleManager.cpp
+++ b/src/config/shared/workspace/WorkspaceRuleManager.cpp
@@ -55,7 +55,7 @@ std::string CWorkspaceRuleManager::getDefaultWorkspaceFor(const std::string& nam
if (!other->m_enabled)
continue;
- if (other->m_isDefault) {
+ if (other->m_isDefault.value_or(false)) {
if (other->m_monitor == name)
return other->m_workspaceString;
if (other->m_monitor.starts_with("desc:")) {