mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Ref T192, case insensitive name check
This commit is contained in:
@@ -163,9 +163,9 @@ namespace BlackMisc
|
||||
const QMetaObject *mo = object->metaObject();
|
||||
for (int i = 0; i < mo->classInfoCount(); i++)
|
||||
{
|
||||
QMetaClassInfo ci = mo->classInfo(i);
|
||||
QString name(ci.name());
|
||||
if (name == "D-Bus Interface") { return QString(ci.value()); }
|
||||
const QMetaClassInfo ci = mo->classInfo(i);
|
||||
const QString name = QString(ci.name()).toLower();
|
||||
if (name == "d-bus interface") { return QString(ci.value()); }
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user