Commit 1f42ee8d authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Albert Astals Cid
Browse files

Define X-KDE-KRDC-Sorting values as number, utilize KPluginMetaData::value to...

Define X-KDE-KRDC-Sorting values as number, utilize KPluginMetaData::value to avoid conversion warnings
parent 4f5ce684
Pipeline #165334 passed with stage
in 45 seconds
......@@ -122,5 +122,5 @@
"Name[zh_CN]": "Konsole",
"Name[zh_TW]": "終端機_Konsole"
},
"X-KDE-KRDC-Sorting": "70"
"X-KDE-KRDC-Sorting": 70
}
......@@ -205,7 +205,7 @@ void MainWindow::loadAllPlugins()
if (result) {
RemoteViewFactory *component = result.plugin;
const int sorting = plugin.value(QStringLiteral("X-KDE-KRDC-Sorting")).toInt();
const int sorting = plugin.value(QStringLiteral("X-KDE-KRDC-Sorting"), 0);
m_remoteViewFactories.insert(sorting, component);
}
}
......
......@@ -120,5 +120,5 @@
"Name[zh_TW]": "RDP"
},
"X-KDE-ConfigModule": "krdc/kcms/kcm_krdc_rdpplugin",
"X-KDE-KRDC-Sorting": "60"
"X-KDE-KRDC-Sorting": 60
}
......@@ -121,5 +121,5 @@
"Name[zh_CN]": "测试",
"Name[zh_TW]": "測試"
},
"X-KDE-KRDC-Sorting": "80"
"X-KDE-KRDC-Sorting": 80
}
......@@ -118,5 +118,5 @@
"Name[zh_TW]": "VNC"
},
"X-KDE-ConfigModule": "krdc/kcms/kcm_krdc_vncplugin",
"X-KDE-KRDC-Sorting": "20"
"X-KDE-KRDC-Sorting": 20
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment