┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-05-19 18:55:05 +0000
committerPeter Penz <[email protected]>2010-05-19 18:55:05 +0000
commit91851b436e7c623b54a19f8948b01b4dd28b50cc (patch)
tree11d7f0ae727fb84b2d3bfbca0a144c770c0705b4 /src
parent9279fb3ec7604b92abd593c66ed0e67b5ff753ff (diff)
Disable the automatic error handling in the DolphinDirLister, the error message is shown in Dolphin instead.
CCBUG: 229505 svn path=/trunk/KDE/kdebase/apps/; revision=1128599
Diffstat (limited to 'src')
-rw-r--r--src/dolphindirlister.cpp3
-rw-r--r--src/viewproperties.cpp5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/dolphindirlister.cpp b/src/dolphindirlister.cpp
index 55be9cd2e..2eac5522d 100644
--- a/src/dolphindirlister.cpp
+++ b/src/dolphindirlister.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006-2009 by Peter Penz <[email protected]> *
+ * Copyright (C) 2006-2010 by Peter Penz <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -24,6 +24,7 @@
DolphinDirLister::DolphinDirLister() :
KDirLister()
{
+ setAutoErrorHandlingEnabled(false, 0);
}
DolphinDirLister::~DolphinDirLister()
diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp
index 9107828d6..1fa84f4a6 100644
--- a/src/viewproperties.cpp
+++ b/src/viewproperties.cpp
@@ -34,6 +34,8 @@
#include <QFile>
#include <QFileInfo>
+#include <kdebug.h>
+
ViewProperties::ViewProperties(const KUrl& url) :
m_changedProps(false),
m_autoSave(true),
@@ -45,7 +47,8 @@ ViewProperties::ViewProperties(const KUrl& url) :
const QLatin1String fileName("/.directory");
- if ((m_filepath.length() < 1) || (!QDir::isAbsolutePath(m_filepath))) {
+ if ((m_filepath.length() < 1) || !QDir::isAbsolutePath(m_filepath)) {
+ kDebug() << "---- using global path: global/.directory";
const QString file = destinationDir("global") + fileName;
m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
return;