Diffstat (limited to 'kaddressbook/mainembedded.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/mainembedded.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 850e5b2..d781f67 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp | |||
@@ -25,2 +25,17 @@ int main( int argc, char **argv ) | |||
25 | QApplication::setStyle( new QPlatinumStyle ()); | 25 | QApplication::setStyle( new QPlatinumStyle ()); |
26 | QString hdir = QDir::homeDirPath(); | ||
27 | // there is a bug when creating dirs for WIN 98 | ||
28 | // it is difficult to fix, because we have no WIN 98 runnung | ||
29 | // such that we try it to create the dirs at startup here | ||
30 | if ( hdir == "C:\\" ) { // win 98 or ME | ||
31 | QDir app_dir; | ||
32 | if ( !app_dir.exists("C:\\kdepim") ) | ||
33 | app_dir.mkdir ("C:\\kdepim"); | ||
34 | if ( !app_dir.exists("C:\\kdepim\\apps") ) | ||
35 | app_dir.mkdir ("C:\\kdepim\\apps"); | ||
36 | if ( !app_dir.exists("C:\\kdepim\\config") ) | ||
37 | app_dir.mkdir ("C:\\kdepim\\config"); | ||
38 | if ( !app_dir.exists("C:\\kdepim\\apps\\kaddressbook") ) | ||
39 | app_dir.mkdir ("C:\\kdepim\\apps\\kaddressbook"); | ||
40 | } | ||
26 | #endif | 41 | #endif |