+ if translation of group is done do not overwrite
This commit is contained in:
parent
433efbc115
commit
ee59f1263c
|
@ -94,10 +94,13 @@ DlgCustomCommandsImp::DlgCustomCommandsImp( QWidget* parent )
|
|||
QString text = qApp->translate(it->second->className(), it->second->getGroupName());
|
||||
GroupMap::iterator jt;
|
||||
jt = std::find_if(groupMap.begin(), groupMap.end(), GroupMap_find(group));
|
||||
if (jt != groupMap.end())
|
||||
jt->second = text;
|
||||
else
|
||||
if (jt != groupMap.end()) {
|
||||
if (jt->second.isEmpty())
|
||||
jt->second = text;
|
||||
}
|
||||
else {
|
||||
groupMap.push_back(std::make_pair(group, text));
|
||||
}
|
||||
}
|
||||
|
||||
QStringList labels; labels << tr("Category");
|
||||
|
|
|
@ -86,10 +86,13 @@ DlgCustomKeyboardImp::DlgCustomKeyboardImp( QWidget* parent )
|
|||
QString text = qApp->translate(it->second->className(), it->second->getGroupName());
|
||||
GroupMap::iterator jt;
|
||||
jt = std::find_if(groupMap.begin(), groupMap.end(), GroupMap_find(group));
|
||||
if (jt != groupMap.end())
|
||||
jt->second = text;
|
||||
else
|
||||
if (jt != groupMap.end()) {
|
||||
if (jt->second.isEmpty())
|
||||
jt->second = text;
|
||||
}
|
||||
else {
|
||||
groupMap.push_back(std::make_pair(group, text));
|
||||
}
|
||||
}
|
||||
|
||||
int index = 0;
|
||||
|
|
|
@ -93,10 +93,13 @@ DlgCustomToolbars::DlgCustomToolbars(DlgCustomToolbars::Type t, QWidget* parent)
|
|||
QString text = qApp->translate(it->second->className(), it->second->getGroupName());
|
||||
GroupMap::iterator jt;
|
||||
jt = std::find_if(groupMap.begin(), groupMap.end(), GroupMap_find(group));
|
||||
if (jt != groupMap.end())
|
||||
jt->second = text;
|
||||
else
|
||||
if (jt != groupMap.end()) {
|
||||
if (jt->second.isEmpty())
|
||||
jt->second = text;
|
||||
}
|
||||
else {
|
||||
groupMap.push_back(std::make_pair(group, text));
|
||||
}
|
||||
}
|
||||
|
||||
int index = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user