summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancois Andriot <[email protected]>2013-07-31 01:41:02 +0200
committerSlávek Banko <[email protected]>2013-07-31 01:42:02 +0200
commit3542ae76bf0cf8bbdfa73739ba92b0b2e32eaf35 (patch)
tree0c1b214f26546c09fe689e3d0a1d0300091d90e3 /src
parente169a4e3595ce1c66cb2cecc1a4963f93e415243 (diff)
downloadkdbusnotification-3542ae76bf0cf8bbdfa73739ba92b0b2e32eaf35.tar.gz
kdbusnotification-3542ae76bf0cf8bbdfa73739ba92b0b2e32eaf35.zip
Fix message encoding in notifications
Diffstat (limited to 'src')
-rw-r--r--src/daemon/daemon.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp
index 7eb59d6..1c582ab 100644
--- a/src/daemon/daemon.cpp
+++ b/src/daemon/daemon.cpp
@@ -231,9 +231,10 @@ notify_daemon_notify_handler(NotifyDaemon *daemon,
}
// Send a notification request to KDE here...
- TQString messageText = TQString(body);
+ TQString messageCaption = TQString::fromLocal8Bit(summary);
+ TQString messageText = TQString::fromLocal8Bit(body);
- GTKNotifierContainer->displayMessage(TQString(summary), TQString(body), TQString(icon), x, y);
+ GTKNotifierContainer->displayMessage(messageCaption, messageText, TQString(icon), x, y);
return_id = 0;