fix: Qt5 compat - use toInt() instead of toInteger() for QJsonValue

This commit is contained in:
IChooseYou committed 2026-02-16 10:23:55 -07:00
1 parent 9e90f66ca0
commit 3685530287
1 file changed
+1 -1
+1 -1
View File
@@ -793,7 +793,7 @@ QJsonObject McpBridge::toolSourceSwitch(const QJsonObject& args) {
}
if (args.contains("pid")) {
uint32_t pid = (uint32_t)args.value("pid").toInteger();
uint32_t pid = (uint32_t)args.value("pid").toInt();
QString name = args.value("processName").toString();
if (name.isEmpty()) name = QString("PID %1").arg(pid);
QString target = QString("%1:%2").arg(pid).arg(name);