[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/workspace/libs/plasmaclock
From:       Chani Armitage <chanika () gmail ! com>
Date:       2010-02-02 20:28:51
Message-ID: 1265142531.470719.32563.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1084261 by chani:

backport r1084260:
make clocks obey security


 M  +1 -1      clockapplet.cpp  


--- branches/KDE/4.4/kdebase/workspace/libs/plasmaclock/clockapplet.cpp #1084260:1084261
@@ -453,7 +453,7 @@
         connect(d->clipboardMenu, SIGNAL(triggered(QAction*)), this, SLOT(copyToClipboard(QAction*)));
 
         KService::List offers = KServiceTypeTrader::self()->query("KCModule", "Library == 'kcm_clock'");
-        if (!offers.isEmpty()) {
+        if (!offers.isEmpty() && hasAuthorization("LaunchApp")) {
             d->adjustSystemTimeAction = new QAction(this);
             d->adjustSystemTimeAction->setText(i18n("Adjust Date and Time"));
             d->adjustSystemTimeAction->setIcon(KIcon("preferences-system-time"));
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic