mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 11:02:30 -04:00
Changed the generation of the gpg key and location to utf8.
The existing gpg keys and locations with umlauts are now shown wrong. The changes are not backward compatible. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4460 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7d4b8288ca
commit
8d4a4db027
32 changed files with 103 additions and 118 deletions
|
@ -763,7 +763,7 @@ void MessengerWindow::insertPeers()
|
|||
|
||||
gpgIcon = QIcon(StatusDefs::imageIM(bestRSState));
|
||||
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromStdString(detail.name));
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromUtf8(detail.name.c_str()));
|
||||
gpg_item -> setToolTip(COLUMN_NAME, StatusDefs::tooltip(bestRSState));
|
||||
|
||||
std::map<std::string, QString>::iterator customStateString = sslCustomStateStrings.find(bestSslId);
|
||||
|
@ -783,14 +783,14 @@ void MessengerWindow::insertPeers()
|
|||
|
||||
if (stateString.isEmpty()) {
|
||||
/* show only the name */
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromStdString(detail.name));
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromUtf8(detail.name.c_str()));
|
||||
} else {
|
||||
/* show the name with location */
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromStdString(detail.name) + "\n" + stateString);
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromUtf8(detail.name.c_str()) + "\n" + stateString);
|
||||
}
|
||||
} else {
|
||||
/* show the name with custom state string */
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromStdString(detail.name) + "\n" + customStateString->second);
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromUtf8(detail.name.c_str()) + "\n" + customStateString->second);
|
||||
}
|
||||
|
||||
gpg_item->setData(COLUMN_NAME, ROLE_SORT, BuildStateSortString(sortState, gpg_item->text(COLUMN_NAME), bestPeerState));
|
||||
|
@ -798,7 +798,7 @@ void MessengerWindow::insertPeers()
|
|||
#endif // MINIMAL_RSGUI
|
||||
} else if (gpg_online) {
|
||||
gpg_item->setHidden(hideOfflineFriends);
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromStdString(detail.name));
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromUtf8(detail.name.c_str()));
|
||||
gpgIcon = QIcon(IMAGE_AVAIBLE);
|
||||
gpg_item->setData(COLUMN_NAME, ROLE_SORT, BuildStateSortString(sortState, gpg_item->text(COLUMN_NAME), PEER_STATE_AVAILABLE));
|
||||
QFont font;
|
||||
|
@ -809,7 +809,7 @@ void MessengerWindow::insertPeers()
|
|||
}
|
||||
} else {
|
||||
gpg_item->setHidden(hideOfflineFriends);
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromStdString(detail.name));
|
||||
gpg_item->setText(COLUMN_NAME, QString::fromUtf8(detail.name.c_str()));
|
||||
gpgIcon = QIcon(StatusDefs::imageIM(RS_STATUS_OFFLINE));
|
||||
gpg_item->setData(COLUMN_NAME, ROLE_SORT, BuildStateSortString(sortState, gpg_item->text(COLUMN_NAME), PEER_STATE_OFFLINE));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue