[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. 9046da66f7862841119b95fb16d0df9a4ca3a4aa
Modestas Vainius
modax-guest at alioth.debian.org
Sun Mar 1 11:08:04 UTC 2009
The following commit has been merged in the master branch:
commit 08ccb004a7de30d5589dc340d4efc9f3694eef59
Author: Modestas Vainius <modestas at vainius.eu>
Date: Sun Mar 1 12:47:44 2009 +0200
Directory does not have to exist to prettify its name.
Signed-off-by: Modestas Vainius <modestas at vainius.eu>
diff --git a/kaboomsettings.cpp b/kaboomsettings.cpp
index 02fd542..602d874 100644
--- a/kaboomsettings.cpp
+++ b/kaboomsettings.cpp
@@ -83,19 +83,17 @@ void KaboomSettings::setKdehomePath(KdeHomeType type, const QString & path)
m_kdehomes[type] = dir;
m_prettyKdehomes[type] = path;
- if (dir.exists()) {
- /* Determine pretty path (replace $HOME with ~) */
- QStringList paths;
- QString homepath = QDir::homePath();
-
- paths.append(dir.absolutePath());
- paths.append(dir.canonicalPath());
- foreach (QString path, paths) {
- if (path.indexOf(homepath) == 0) {
- path.replace(0, homepath.length(), "~");
- m_prettyKdehomes[type] = path;
- break;
- }
+ /* Determine pretty path (replace $HOME with ~) */
+ QStringList paths;
+ QString homepath = QDir::homePath();
+
+ paths.append(dir.absolutePath());
+ paths.append(dir.canonicalPath());
+ foreach (QString path, paths) {
+ if (path.indexOf(homepath) == 0) {
+ path.replace(0, homepath.length(), "~");
+ m_prettyKdehomes[type] = path;
+ break;
}
}
}
--
Kaboom - Debian KDE 3->4 migration tool
More information about the pkg-kde-commits
mailing list