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

List:       kde-commits
Subject:    [plasma-desktop] attica-kde/kdeplugin: Remove KGlobal check and KComponentData object that overrode 
From:       Jeremy Whiting <jpwhiting () kde ! org>
Date:       2014-11-30 21:57:58
Message-ID: E1XvCVC-00066u-Om () scm ! kde ! org
[Download RAW message or body]

Git commit 77e3941f234fbb129678c174d4e19a9c5fe5ac07 by Jeremy Whiting.
Committed on 30/11/2014 at 21:44.
Pushed by whiting into branch 'master'.

Remove KGlobal check and KComponentData object that overrode applications
KAboutData when showing dialogs.

REVIEW:121298

M  +0    -6    attica-kde/kdeplugin/kdeplatformdependent.cpp

http://commits.kde.org/plasma-desktop/77e3941f234fbb129678c174d4e19a9c5fe5ac07

diff --git a/attica-kde/kdeplugin/kdeplatformdependent.cpp \
b/attica-kde/kdeplugin/kdeplatformdependent.cpp index 4ade04c..ed8669d 100644
--- a/attica-kde/kdeplugin/kdeplatformdependent.cpp
+++ b/attica-kde/kdeplugin/kdeplatformdependent.cpp
@@ -30,7 +30,6 @@
 #include <kcomponentdata.h>
 #include <KDebug>
 #include <KWallet/Wallet>
-#include <KGlobal>
 #include <KLocalizedString>
 #include <KStringHandler>
 #include <KMessageBox>
@@ -40,11 +39,6 @@ using namespace Attica;
 KdePlatformDependent::KdePlatformDependent()
     : m_config(KSharedConfig::openConfig("atticarc")), m_accessManager(0), \
m_wallet(0)  {
-    // when a plain Qt application loads this plugin, it needs a valid KGlobal \
                object
-    if (!KGlobal::hasMainComponent()) {
-        KComponentData componentData("attica_kde");
-    }
-
     // FIXME: Investigate how to not leak this instance witohut crashing.
     m_accessManager = new KIO::Integration::AccessManager(0);
 }


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

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