diff options
author | Fritz Elfert <felfert@to.com> | 2001-03-06 17:13:01 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-03-06 17:13:01 +0000 |
commit | fd8c3ec28d9f721e15ee89de412ad565f94e79d3 (patch) | |
tree | 70360d190779249f9bd33150cfa0052d64d81e7a /kde2/kpsion/wizards.cpp | |
parent | 276db8fe7efa26e83310ecffddca044751fd4ab3 (diff) | |
download | plptools-fd8c3ec28d9f721e15ee89de412ad565f94e79d3.tar.gz plptools-fd8c3ec28d9f721e15ee89de412ad565f94e79d3.tar.bz2 plptools-fd8c3ec28d9f721e15ee89de412ad565f94e79d3.zip |
KPsion: added format stuff.
Diffstat (limited to 'kde2/kpsion/wizards.cpp')
-rw-r--r-- | kde2/kpsion/wizards.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/kde2/kpsion/wizards.cpp b/kde2/kpsion/wizards.cpp index 24cd121..62734b5 100644 --- a/kde2/kpsion/wizards.cpp +++ b/kde2/kpsion/wizards.cpp @@ -37,6 +37,7 @@ #include <klocale.h> #include <kfiledialog.h> #include <kmessagebox.h> +#include <kstddirs.h> #include <qlayout.h> #include <qwhatsthis.h> @@ -53,13 +54,7 @@ FirstTimeWizard::FirstTimeWizard(QWidget *parent, const char *name) QWhatsThis::add(cancelButton(), i18n("<QT>If you click this button, the setup of <B>KPSion</B> will be aborted and next time you start <B>KPsion</B>, it will run this setup again.</QT>")); - // Getting the users home directory from the passwd-entry is MUCH safer - // than getting it from $HOME !!! (Environments can be tweaked) - struct passwd *pw = getpwuid(getuid()); - bdirDefault = QString((pw) ? pw->pw_dir : 0L); - if (bdirDefault.isEmpty()) - bdirDefault = QDir::homeDirPath(); - bdirDefault += "/KPsionBackup"; + bdirDefault = locateLocal("data", "kpsion/backups"); bdirCreated = ""; // Page 1 |