diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-09 18:49:03 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-09 18:51:46 (GMT) |
commit | a853ebfbe378f7e3f44e4898b7dbe0db3e954938 (patch) | |
tree | 7ec170f834ef154a0d23d570058d8e944c58009f /Swift | |
parent | 3e13fa1f097ec3d350e131e0826d8f97f700917b (diff) | |
download | swift-a853ebfbe378f7e3f44e4898b7dbe0db3e954938.zip swift-a853ebfbe378f7e3f44e4898b7dbe0db3e954938.tar.bz2 |
Properly display unicode in Windows notifier.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/WindowsNotifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/WindowsNotifier.cpp b/Swift/QtUI/WindowsNotifier.cpp index 8c113c5..9646b90 100644 --- a/Swift/QtUI/WindowsNotifier.cpp +++ b/Swift/QtUI/WindowsNotifier.cpp @@ -12,6 +12,7 @@ #include <boost/bind.hpp> #include "QtWin32NotifierWindow.h" +#include "QtSwiftUtil.h" namespace Swift { @@ -37,7 +38,7 @@ void WindowsNotifier::showMessage(Type type, const String& subject, const String } lastCallback = callback; int timeout = (type == IncomingMessage || type == SystemMessage) ? DEFAULT_MESSAGE_NOTIFICATION_TIMEOUT_SECONDS : DEFAULT_STATUS_NOTIFICATION_TIMEOUT_SECONDS; - tray->showMessage(subject.getUTF8Data(), description.getUTF8Data(), type == SystemMessage ? QSystemTrayIcon::Information : QSystemTrayIcon::NoIcon, timeout * 1000); + tray->showMessage(P2QSTRING(subject), P2QSTRING(description), type == SystemMessage ? QSystemTrayIcon::Information : QSystemTrayIcon::NoIcon, timeout * 1000); } void WindowsNotifier::handleMessageClicked() { |