Fixed utf8 issue with links from browser (Windows only).

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4634 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-10-08 17:49:06 +00:00
parent c1af9b13ad
commit e3798dafe9
4 changed files with 12 additions and 33 deletions

View file

@ -105,7 +105,7 @@ bool EventReceiver::sendRetroShareLink(const QString& link)
if (info) {
#ifdef WINDOWS_SYS
if (info->wid) {
QByteArray linkData = link.toAscii();
QByteArray linkData(link.toUtf8());
COPYDATASTRUCT send;
send.dwData = OP_RETROSHARELINK;
@ -149,7 +149,7 @@ bool EventReceiver::winEvent(MSG* message, long* result)
COPYDATASTRUCT *data = (COPYDATASTRUCT*) message->lParam;
if (data && data->dwData == OP_RETROSHARELINK) {
received(QString::fromAscii((const char*) data->lpData, data->cbData));
received(QString::fromUtf8((const char*) data->lpData, data->cbData));
/* Keep the event from Qt */
*result = 0;