Commit 7c5f16c4 authored by Michail Vourlakos's avatar Michail Vourlakos Committed by David Edmundson

Fix SystemEntries not updating correctly

The code is meant to add the entry if it's valid, then watch for
changes. Somehow we end up only monitoring if it was valid initially.
This doesn't make sense.

This means if the menu loads before the backend we don't update
correctly when it does load.

CCBUG: 423526
BUG: 427779
parent e932eae6
......@@ -107,9 +107,9 @@ void SystemModel::populate()
if (entry->isValid()) {
m_entries << entry;
QObject::connect(entry, &SystemEntry::isValidChanged, this,
&AbstractModel::refresh, Qt::UniqueConnection);
}
QObject::connect(entry, &SystemEntry::isValidChanged, this,
&AbstractModel::refresh, Qt::UniqueConnection);
};
addIfValid(SystemEntry::LockSession);
......
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