From bb235c5a639b914574e1e247d2de6e479517585f Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 20 Oct 2004 21:49:51 +0000 Subject: qtopia resource fixes --- (limited to 'microkde/kresources/managerimpl.cpp') diff --git a/microkde/kresources/managerimpl.cpp b/microkde/kresources/managerimpl.cpp index 81bbbec..5bd9eb7 100644 --- a/microkde/kresources/managerimpl.cpp +++ b/microkde/kresources/managerimpl.cpp @@ -34,6 +34,7 @@ $Id$ #include #include #include +#include #include "resource.h" #include "factory.h" @@ -67,7 +68,13 @@ void ManagerImpl::createStandardConfig() { if ( !mStdConfig ) { QString file = locateLocal( "data", KGlobal::getAppName() - + "/kresources/" + mFamily + "rc" ); + + "/kresources/" + mFamily + "rc" ); + if ( mFamily == "tmpcontact" ) { + if (QFile::exists ( file ) ){ + QFile::remove ( file ); + qDebug("removed tmp rc file: %s ", file.latin1()); + } + } mStdConfig = new KConfig( file ); } -- cgit v0.9.0.2