diff options
author | Antti Kervinen <antti.kervinen@nokia.com> | 2010-06-29 16:29:18 +0300 |
---|---|---|
committer | Jörgen Scheibengruber <jorgen.scheibengruber@nokia.com> | 2010-07-05 12:45:13 +0300 |
commit | b0fdd67f150ea4ceb61608751a659e3d91dac61c (patch) | |
tree | 5efa44d11d10f2a09df22a1a26b9608e42a985bc /mthemedaemon | |
parent | 37c1eb8c5dadb5fff3b991a882eddb799b0ab374 (diff) |
Fixes: NB#176892 - svg ids are not shown on using fast launch in application
RevBy: Juha Lintula
Details:
Application name change after launching boosted application was
not propagated to the theme daemon. Therefore application-specific
graphics that were supposed to be fetched from the daemon did not
work. This commit fixes the issue.
Diffstat (limited to 'mthemedaemon')
-rw-r--r-- | mthemedaemon/mthemedaemonserver.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mthemedaemon/mthemedaemonserver.cpp b/mthemedaemon/mthemedaemonserver.cpp index 0aa647de..6f8472cd 100644 --- a/mthemedaemon/mthemedaemonserver.cpp +++ b/mthemedaemon/mthemedaemonserver.cpp @@ -202,11 +202,10 @@ void MThemeDaemonServer::clientDataAvailable() switch (packet.type()) { case Packet::RequestRegistrationPacket: { - // client tried to register a second time - client->stream() << Packet(Packet::ErrorPacket, packet.sequenceNumber(), - new String("You have already registered!")); - mWarning("MThemeDaemonServer") << "Client with name" << client->name() - << "tried to register a second time!"; + // client re-registered: change the name of the client + client->reinit(static_cast<const String *>(packet.data())->string, daemon.themeInheritanceChain()); + client->stream() << Packet(Packet::ThemeChangedPacket, packet.sequenceNumber(), + new ThemeChangeInfo(daemon.themeInheritanceChain(), daemon.themeLibraryNames())); } break; case Packet::RequestPixmapPacket: { |