author | zautrix <zautrix> | 2004-10-20 21:49:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-20 21:49:51 (UTC) |
commit | bb235c5a639b914574e1e247d2de6e479517585f (patch) (unidiff) | |
tree | 0f074ec87d93b6f5fb81b6893f0174cabc52c1df /microkde | |
parent | 8e00329a4a5f0b66d26d20f067ab6aefca17f17a (diff) | |
download | kdepimpi-bb235c5a639b914574e1e247d2de6e479517585f.zip kdepimpi-bb235c5a639b914574e1e247d2de6e479517585f.tar.gz kdepimpi-bb235c5a639b914574e1e247d2de6e479517585f.tar.bz2 |
qtopia resource fixes
-rw-r--r-- | microkde/kresources/managerimpl.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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 | |||
@@ -29,16 +29,17 @@ $Id$ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <kglobal.h> | 31 | #include <kglobal.h> |
32 | 32 | ||
33 | #include <kapplication.h> | 33 | #include <kapplication.h> |
34 | #include <kdebug.h> | 34 | #include <kdebug.h> |
35 | #include <kconfig.h> | 35 | #include <kconfig.h> |
36 | #include <kstandarddirs.h> | 36 | #include <kstandarddirs.h> |
37 | #include <qfile.h> | ||
37 | 38 | ||
38 | #include "resource.h" | 39 | #include "resource.h" |
39 | #include "factory.h" | 40 | #include "factory.h" |
40 | #include "managerimpl.h" | 41 | #include "managerimpl.h" |
41 | 42 | ||
42 | using namespace KRES; | 43 | using namespace KRES; |
43 | 44 | ||
44 | ManagerImpl::ManagerImpl( const QString &family ) | 45 | ManagerImpl::ManagerImpl( const QString &family ) |
@@ -62,17 +63,23 @@ ManagerImpl::~ManagerImpl() | |||
62 | 63 | ||
63 | delete mStdConfig; | 64 | delete mStdConfig; |
64 | } | 65 | } |
65 | 66 | ||
66 | void ManagerImpl::createStandardConfig() | 67 | void ManagerImpl::createStandardConfig() |
67 | { | 68 | { |
68 | if ( !mStdConfig ) { | 69 | if ( !mStdConfig ) { |
69 | QString file = locateLocal( "data", KGlobal::getAppName() | 70 | QString file = locateLocal( "data", KGlobal::getAppName() |
70 | + "/kresources/" + mFamily + "rc" ); | 71 | + "/kresources/" + mFamily + "rc" ); |
72 | if ( mFamily == "tmpcontact" ) { | ||
73 | if (QFile::exists ( file ) ){ | ||
74 | QFile::remove ( file ); | ||
75 | qDebug("removed tmp rc file: %s ", file.latin1()); | ||
76 | } | ||
77 | } | ||
71 | mStdConfig = new KConfig( file ); | 78 | mStdConfig = new KConfig( file ); |
72 | } | 79 | } |
73 | 80 | ||
74 | mConfig = mStdConfig; | 81 | mConfig = mStdConfig; |
75 | } | 82 | } |
76 | 83 | ||
77 | void ManagerImpl::readConfig( KConfig *cfg ) | 84 | void ManagerImpl::readConfig( KConfig *cfg ) |
78 | { | 85 | { |