From 12fb7e8855d80d388a37876f6a942b2df08bd507 Mon Sep 17 00:00:00 2001 From: askmeaboutloom Date: Tue, 13 Jun 2023 03:08:10 +0200 Subject: [PATCH] Don't warn about null canvas shortcuts in settings Being absent is a valid state, along with them being a list or a map. --- src/libclient/canvas/canvasshortcuts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libclient/canvas/canvasshortcuts.cpp b/src/libclient/canvas/canvasshortcuts.cpp index e85f269c19..9ab707d1e3 100644 --- a/src/libclient/canvas/canvasshortcuts.cpp +++ b/src/libclient/canvas/canvasshortcuts.cpp @@ -414,7 +414,7 @@ QVector CanvasShortcuts::shortcutsToList(const QVariant &shortcuts) QString key = QString::number(i); result.append(map[key].toMap()); } - } else { + } else if(!shortcuts.isNull()) { qWarning("Canvas shortcuts are neither a list nor a map"); } return result;