diff --git a/src/gui/navigationpanehelper.cpp b/src/gui/navigationpanehelper.cpp index e87fd028ab..578f710227 100644 --- a/src/gui/navigationpanehelper.cpp +++ b/src/gui/navigationpanehelper.cpp @@ -67,7 +67,7 @@ void NavigationPaneHelper::updateCloudStorageRegistry() [&entriesToRemove](HKEY key, const QString &subKey) { const auto appName = Utility::registryGetKeyValue(key, subKey, QStringLiteral("ApplicationName")); qCDebug(lcNavPane) << "Searching for user with subKey:" << subKey; - if (appName.toString() == QLatin1String(APPLICATION_NAME)) { + if (appName.toString() == QLatin1String(APPLICATION_NAME) || appName.toString() == unbrandedApplicationName) { QUuid clsid{ subKey }; Q_ASSERT(!clsid.isNull()); entriesToRemove.append(clsid); diff --git a/src/gui/navigationpanehelper.h b/src/gui/navigationpanehelper.h index 59260f908f..bd55a6ad0e 100644 --- a/src/gui/navigationpanehelper.h +++ b/src/gui/navigationpanehelper.h @@ -31,6 +31,7 @@ private: FolderMan *_folderMan; bool _showInExplorerNavigationPane; QTimer _updateCloudStorageRegistryTimer; + static constexpr char unbrandedApplicationName[] = "Nextcloud"; }; } // namespace OCC