App: Fix a warning

"QGuiApplication::setDesktopFileName: the specified desktop file name
ends with .desktop. For compatibility reasons, the .desktop suffix will
be removed. Please specify a desktop file name without .desktop suffix"

Change-Id: I84fa4d6dbed9ab95f9f90b452915bdce290743f3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-06-22 17:35:52 +02:00
parent 39a2145e43
commit 35e9b13e15

View File

@@ -688,7 +688,7 @@ int main(int argc, char **argv)
if (!overrideCodecForLocale.isEmpty()) if (!overrideCodecForLocale.isEmpty())
QTextCodec::setCodecForLocale(QTextCodec::codecForName(overrideCodecForLocale)); QTextCodec::setCodecForLocale(QTextCodec::codecForName(overrideCodecForLocale));
app.setDesktopFileName("org.qt-project.qtcreator.desktop"); app.setDesktopFileName("org.qt-project.qtcreator");
// Make sure we honor the system's proxy settings // Make sure we honor the system's proxy settings
QNetworkProxyFactory::setUseSystemConfiguration(true); QNetworkProxyFactory::setUseSystemConfiguration(true);