mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 07:35:12 -04:00
Some more changes for utf8 in Windows.
Changes in RetroShareLink and drag'n'drop of files. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3511 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fff12a58c6
commit
5277ca61e2
6 changed files with 106 additions and 107 deletions
|
@ -264,7 +264,7 @@ void MessageComposer::recommendFriend(std::list <std::string> &peerids)
|
|||
continue;
|
||||
}
|
||||
|
||||
RetroShareLink link(QString::fromStdString(detail.name), QString::fromStdString(detail.id));
|
||||
RetroShareLink link(QString::fromUtf8(detail.name.c_str()), QString::fromStdString(detail.id));
|
||||
if (link.valid() == false || link.type() != RetroShareLink::TYPE_PERSON) {
|
||||
continue;
|
||||
}
|
||||
|
@ -1297,7 +1297,7 @@ void MessageComposer::attachFile()
|
|||
// select a file
|
||||
QString qfile = QFileDialog::getOpenFileName(this, tr("Add Extra File"), "", "", 0,
|
||||
QFileDialog::DontResolveSymlinks);
|
||||
std::string filePath = qfile.toStdString();
|
||||
std::string filePath = qfile.toUtf8().constData();
|
||||
if (filePath != "")
|
||||
{
|
||||
MessageComposer::addAttachment(filePath);
|
||||
|
@ -1342,7 +1342,7 @@ void MessageComposer::fileHashingFinished(AttachFileItem* file) {
|
|||
return;
|
||||
}
|
||||
|
||||
RetroShareLink message(QString::fromStdString(file->FileName()), file->FileSize(), QString::fromStdString(file->FileHash()));
|
||||
RetroShareLink message(QString::fromUtf8(file->FileName().c_str()), file->FileSize(), QString::fromStdString(file->FileHash()));
|
||||
#ifdef CHAT_DEBUG
|
||||
std::cerr << "MessageComposer::anchorClicked message : " << message.toHtmlFull().toStdString() << std::endl;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue