[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. 542676d733ded7733678caa360aada6729e76c4a
Sune Vuorela
pusling-guest at alioth.debian.org
Mon Feb 23 23:00:35 UTC 2009
The following commit has been merged in the master branch:
commit 11946fc91215d0507d26e99813f843909c62e8e4
Author: Sune Vuorela <sune at vuorela.dk>
Date: Mon Feb 23 23:59:41 2009 +0100
more error handling
diff --git a/choicepage.cpp b/choicepage.cpp
index 88d1c54..3c42054 100644
--- a/choicepage.cpp
+++ b/choicepage.cpp
@@ -71,7 +71,14 @@ ChoicePage::ChoicePage(QWidget *parent) : QWizardPage(parent)
lay->addWidget(d->clean);
if(d->haskdedir) //if no kdedir, nothing to backup.
{
- quint64 dirsize = DirOperations::calculateDirSize(QDir::homePath()+KDEDIR);
+ quint64 dirsize = -1;
+ try {
+ quint64 dirsize = DirOperations::calculateDirSize(QDir::homePath()+KDEDIR);
+ }
+ catch (const DirOperations::Exception&)
+ {
+ // nop - default set before.
+ }
quint64 freespace = DirOperations::freeDirSpace(QDir::homePath());
if(dirsize > freespace)
{
--
Kaboom - Debian KDE 3->4 migration tool
More information about the pkg-kde-commits
mailing list