From 6f43a370123bafede7d8ed0a13603fce72bb4e4e Mon Sep 17 00:00:00 2001 From: Michel Hermier Date: Thu, 3 Nov 2005 11:49:08 +0000 Subject: [PATCH] Use global config. svn path=/trunk/KDE/kdebase/workspace/; revision=477214 --- main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index d0a9a0249f..d9c54cc86e 100644 --- a/main.cpp +++ b/main.cpp @@ -84,10 +84,11 @@ Application::Application( ) : KApplication( ), owner( screen_number ) { KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); - if (!config()->isImmutable() && args->isSet("lock")) + KConfig *config = KGlobal::config(); + if (!config->isImmutable() && args->isSet("lock")) { - config()->setReadOnly(true); - config()->reparseConfiguration(); + config->setReadOnly(true); + config->reparseConfiguration(); } if (screen_number == -1) @@ -101,7 +102,7 @@ Application::Application( ) connect( &owner, SIGNAL( lostOwnership()), SLOT( lostSelection())); // if there was already kwin running, it saved its configuration after loosing the selection -> reread - config()->reparseConfiguration(); + config->reparseConfiguration(); initting = TRUE; // startup....