diff options
| author | Christian Ehrlicher <[email protected]> | 2009-02-24 19:20:14 +0000 |
|---|---|---|
| committer | Christian Ehrlicher <[email protected]> | 2009-02-24 19:20:14 +0000 |
| commit | ce817abf1b8547ae7fc965945fb825a5c60cc46f (patch) | |
| tree | 308fa05c97166b08f84b24e162e42b9c415658bd /src/viewproperties.cpp | |
| parent | beeb81194cba3ecaa84c6e0e334a702036a26c1e (diff) | |
KUrl::path() != KUrl::toLocalFile() - at least not on windows
svn path=/trunk/KDE/kdebase/apps/; revision=931093
Diffstat (limited to 'src/viewproperties.cpp')
| -rw-r--r-- | src/viewproperties.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp index 62898e670..510e4195b 100644 --- a/src/viewproperties.cpp +++ b/src/viewproperties.cpp @@ -56,9 +56,9 @@ ViewProperties::ViewProperties(const KUrl& url) : KUrl cleanUrl(url); cleanUrl.cleanPath(); - m_filepath = cleanUrl.path(); + m_filepath = cleanUrl.toLocalFile(); - if ((m_filepath.length() < 1) || (m_filepath.at(0) != QChar('/'))) { + if ((m_filepath.length() < 1) || (!QDir::isAbsolutePath(m_filepath))) { const QString file = destinationDir("global") + FILE_NAME; m_node = new ViewPropertySettings(KSharedConfig::openConfig(file)); return; |
