Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37779633
en ru br
ALT Linux repos
S:5.110.0-alt1

Group :: System/Libraries
RPM: kf5-kconfig

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-small-not-authorize-donate.patch
Download


--- a/src/core/kauthorized.cpp
+++ b/src/core/kauthorized.cpp
@@ -216,8 +216,20 @@ bool KAuthorized::authorize(const QStrin
         return true;
     }
 
+    bool default_authorized = true;
+    if( genericAction == QStringLiteral("action/help_donate") ) {
+	switch(QLocale::system().country()) {
+	    case QLocale::Belarus:
+	    case QLocale::Russia:
+		// unable to transfer money
+		default_authorized = false;
+		break;
+	    default:
+		break;
+	}
+    }
     KConfigGroup cg(KSharedConfig::openConfig(), "KDE Action Restrictions");
-    return cg.readEntry(genericAction, true);
+    return cg.readEntry(genericAction, default_authorized);
 }
 
 bool KAuthorized::authorize(KAuthorized::GenericRestriction action)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin