From 5bc5e684b545a0df138aa25f7739f82bae2b31e4 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 13 Mar 2021 17:10:51 +0200 Subject: [PATCH] protect from invalid screen connectors --- app/screenpool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/screenpool.cpp b/app/screenpool.cpp index 559a1d3c6..9bb37a320 100644 --- a/app/screenpool.cpp +++ b/app/screenpool.cpp @@ -74,6 +74,10 @@ void ScreenPool::load() //restore the known ids to connector mappings for (const QString &key : m_configGroup.keyList()) { + if (key.toInt() <= 0) { + continue; + } + QString serialized = m_configGroup.readEntry(key, QString()); Data::Screen screenRecord(key, serialized);