[frameworks/kio/kf5] src/core: SlaveInterface: Set button icon for "Continue Loading"
Jonathan Marten
null at kde.org
Wed Apr 5 17:04:43 BST 2023
Git commit bed39a75a9967ad8ce2a6c04b6d970f68e96940b by Jonathan Marten.
Committed on 05/04/2023 at 15:32.
Pushed by marten into branch 'kf5'.
SlaveInterface: Set button icon for "Continue Loading"
This originates from the "You are about to leave secure mode..."
message box in TCPWorkerBase::connectToHost(). The string tested
here must match the button text exactly - yes, it's a hack, and
hopefully there will be a better solution in KF6.
GUI:
M +2 -0 src/core/slaveinterface.cpp
https://invent.kde.org/frameworks/kio/commit/bed39a75a9967ad8ce2a6c04b6d970f68e96940b
diff --git a/src/core/slaveinterface.cpp b/src/core/slaveinterface.cpp
index 4adeb70be..c889b65ec 100644
--- a/src/core/slaveinterface.cpp
+++ b/src/core/slaveinterface.cpp
@@ -423,6 +423,8 @@ void SlaveInterface::messageBox(int type,
data.insert(UserNotificationHandler::MSG_PRIMARYACTION_ICON, QLatin1String("help-about"));
} else if (primaryActionText == i18n("&Forever")) {
data.insert(UserNotificationHandler::MSG_PRIMARYACTION_ICON, QLatin1String("flag-green"));
+ } else if (primaryActionText == i18n("C&ontinue Loading")) {
+ data.insert(UserNotificationHandler::MSG_PRIMARYACTION_ICON, QLatin1String("arrow-right"));
}
if (secondaryActionText == i18n("Co&ntinue")) {
More information about the kde-doc-english
mailing list