mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 22:40:36 -04:00
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:
parent
c1af9b13ad
commit
e3798dafe9
4 changed files with 12 additions and 33 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue