fixed naming in friend groups in GroupChooser

This commit is contained in:
csoler 2017-07-02 10:42:22 +02:00
parent 77b064b371
commit e9f9856048

View File

@ -52,7 +52,7 @@ bool GroupChooser::makeNodeGroupDesc(const RsGroupInfo& info, QString &desc)
if(info.name.empty())
desc = tr("[Unknown]") ;
else
desc = "\"" + QString::fromUtf8(info.name.c_str()) + "\"";
desc = "\"" + GroupDefs::name(info) + "\"";
desc += " [" ;
desc += QString::fromStdString(info.id.toStdString().substr(0,3));
@ -89,7 +89,7 @@ void GroupChooser::loadGroups()
std::cerr << std::endl;
continue;
}
QString id = GroupDefs::name(*it) ;
QString id = QString::fromStdString((*it).id.toStdString()) ;
addItem(str, id);