]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Disable the automatic error handling in the DolphinDirLister, the error message is...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 19 May 2010 18:55:05 +0000 (18:55 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 19 May 2010 18:55:05 +0000 (18:55 +0000)
CCBUG: 229505

svn path=/trunk/KDE/kdebase/apps/; revision=1128599

src/dolphindirlister.cpp
src/viewproperties.cpp

index 55be9cd2e71b4ee7253b1313dcb1bc29e5d0c98e..2eac5522da27da05f6cb930e7b36eb3da823a599 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2006-2009 by Peter Penz <peter.penz@gmx.at>             *
+ *   Copyright (C) 2006-2010 by Peter Penz <peter.penz@gmx.at>             *
  *                                                                         *
  *   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()
index 9107828d6cbe1c32984adac41b824b159f953a75..1fa84f4a694e52ebedf18bc0ea71753168e5f0f0 100644 (file)
@@ -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;