From 422c4ef189af0f40a2db76f44406140bc28c46e2 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Thu, 19 Mar 2020 12:49:52 +0100 Subject: [PATCH] Add warning message for a potential bug where the wallpaper counter never resets --- ScreenPlay/src/screenplaymanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ScreenPlay/src/screenplaymanager.cpp b/ScreenPlay/src/screenplaymanager.cpp index 0229f683..d6611d0d 100644 --- a/ScreenPlay/src/screenplaymanager.cpp +++ b/ScreenPlay/src/screenplaymanager.cpp @@ -175,6 +175,8 @@ void ScreenPlayManager::removeAllWallpapers() Util::writeJsonObjectToFile(absoluteProfilesFilePath, newConfig); setActiveWallpaperCounter(0); + } else { + qWarning() << "Trying to remove all wallpapers while m_screenPlayWallpapers is not empty. Count: "<< m_screenPlayWallpapers.size(); } }