diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 88003bb10f..ceb4a75133 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -6320,11 +6320,11 @@ bool Application::askToWearAvatarAttachmentUrl(const QString& url) { bool Application::askToReplaceDomainContent(const QString& url) { QString methodDetails; + const int MAX_CHARACTERS_PER_LINE = 90; if (DependencyManager::get()->getThisNodeCanReplaceContent()) { QUrl originURL { url }; if (originURL.host().endsWith(MARKETPLACE_CDN_HOSTNAME)) { // Create a confirmation dialog when this call is made - const int MAX_CHARACTERS_PER_LINE = 90; static const QString infoText = simpleWordWrap("Your domain's content will be replaced with a new content set. " "If you want to save what you have now, create a backup before proceeding. For more information about backing up " "and restoring content, visit the documentation page at: ", MAX_CHARACTERS_PER_LINE) + @@ -6360,7 +6360,9 @@ bool Application::askToReplaceDomainContent(const QString& url) { } } else { methodDetails = "UserDoesNotHavePermissionToReplaceContent"; - OffscreenUi::warning("Unable to replace content", "You do not have permissions to replace domain content", + static const QString warningMessage = simpleWordWrap("The domain owner must enable 'Replace Content' " + "permissions for you in this domain's server settings before you can continue.", MAX_CHARACTERS_PER_LINE); + OffscreenUi::warning("You do not have permissions to replace domain content", warningMessage, QMessageBox::Ok, QMessageBox::Ok); } QJsonObject messageProperties = {