Commit 3e7d0074 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Core::Id: Do not warn when reading invalid ids from settings



Change-Id: Ic2fc0df7f3ac5e8006123bf94c4e55a3a7d86593
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent cc9848f1
...@@ -254,6 +254,8 @@ QVariant Id::toSetting() const ...@@ -254,6 +254,8 @@ QVariant Id::toSetting() const
Id Id::fromSetting(const QVariant &variant) Id Id::fromSetting(const QVariant &variant)
{ {
const QByteArray ba = variant.toString().toUtf8(); const QByteArray ba = variant.toString().toUtf8();
if (ba.isEmpty())
return Id();
return Id(theId(ba)); return Id(theId(ba));
} }
......
Supports Markdown
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