Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/file-provider-share-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
camilasan committed Apr 23, 2024
2 parents b40397d + 1c84b83 commit bf012c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/gui/macOS/fileproviderdomainmanager_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#import <FileProvider/FileProvider.h>

#include <QLoggingCategory>
#include <QRegularExpression>

#include "config.h"
#include "fileproviderdomainmanager.h"
Expand All @@ -31,7 +32,8 @@
QString domainIdentifierForAccount(const OCC::Account * const account)
{
Q_ASSERT(account);
return account->userIdAtHostWithPort();
static const QRegularExpression illegalChars("[:/]");
return account->userIdAtHostWithPort().replace(illegalChars, "-");
}

QString domainIdentifierForAccount(const OCC::AccountPtr account)
Expand Down
4 changes: 3 additions & 1 deletion src/gui/updater/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ QUrl Updater::updateUrl()
if (SparkleUpdater::autoUpdaterAllowed()) {
urlQuery.addQueryItem(QLatin1String("sparkle"), QLatin1String("true"));
}
#ifdef BUILD_FILE_PROVIDER_MODULE
urlQuery.addQueryItem(QLatin1String("fileprovider"), QLatin1String("true"));
#endif
#endif

#if defined(Q_OS_WIN)
urlQuery.addQueryItem(QLatin1String("msi"), QLatin1String("true"));
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/gui/userstatusselectormodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class UserStatusSelectorModel : public QObject

Q_REQUIRED_RESULT QVariantList clearStageTypes() const;
Q_REQUIRED_RESULT QString clearAtDisplayString() const;
Q_INVOKABLE [[nodiscard]] QString clearAtReadable(const OCC::UserStatus &status) const;
[[nodiscard]] Q_INVOKABLE QString clearAtReadable(const OCC::UserStatus &status) const;

Q_REQUIRED_RESULT QString errorMessage() const;

Expand Down

0 comments on commit bf012c2

Please sign in to comment.