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
This commit is contained in:
Peter Penz 2010-05-19 18:55:05 +00:00
parent 9279fb3ec7
commit 91851b436e
2 changed files with 6 additions and 2 deletions

View 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()

View 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;