QGenericUnixServices: make sure the picker returns a color
This amends b646c7b76c7787cff57bca0fde04d9f58abdfbb8 . Pick-to: 6.7 6.6 6.5 Change-Id: Ic7183c06a93085d65b31c86380889b78c714548b Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
c5f22c54cb
commit
f07d8309d6
@ -354,9 +354,13 @@ private Q_SLOTS:
|
||||
{
|
||||
if (result != 0)
|
||||
return;
|
||||
XDGDesktopColor color{};
|
||||
map.value(u"color"_s).value<QDBusArgument>() >> color;
|
||||
Q_EMIT colorPicked(color.toQColor());
|
||||
if (map.contains(u"color"_s)) {
|
||||
XDGDesktopColor color{};
|
||||
map.value(u"color"_s).value<QDBusArgument>() >> color;
|
||||
Q_EMIT colorPicked(color.toQColor());
|
||||
} else {
|
||||
Q_EMIT colorPicked({});
|
||||
}
|
||||
deleteLater();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user