Skip to content

Commit

Permalink
Don't warn about null canvas shortcuts in settings
Browse files Browse the repository at this point in the history
Being absent is a valid state, along with them being a list or a map.
  • Loading branch information
askmeaboutlo0m committed Jun 13, 2023
1 parent 8409519 commit 12fb7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libclient/canvas/canvasshortcuts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ QVector<QVariantMap> 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;
Expand Down

0 comments on commit 12fb7e8

Please sign in to comment.