From a853ebfbe378f7e3f44e4898b7dbe0db3e954938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Wed, 9 Feb 2011 19:49:03 +0100 Subject: Properly display unicode in Windows notifier. 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() { -- cgit v0.10.2-6-g49f6