Fix add/delete of buttons in non english configurations

This commit is contained in:
lupoDharkael
2017-07-02 15:59:17 +02:00
parent c3f519de53
commit 8b48131deb
2 changed files with 7 additions and 1 deletions

View File

@@ -246,7 +246,7 @@ size_t Button::getButtonBaseSize() {
Button::Type Button::getTypeByName(const QString s) {
Button::Type res = Type::last;
for (auto i: typeName.toStdMap())
if (i.second == s)
if (tr(i.second) == s)
res = i.first;
return res;
}