/***************************************************************************
- * Copyright (C) 2006 by Peter Penz *
- * peter.penz@gmx.at *
+ * Copyright (C) 2006-2009 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 *
***************************************************************************/
#include "dolphindirlister.h"
+#include "klocale.h"
#include <kio/jobclasses.h>
DolphinDirLister::DolphinDirLister() :
if (job->error() == KIO::ERR_IS_FILE) {
emit urlIsFileError(url());
} else {
- emit errorMessage(job->errorString());
+ const QString errorString = job->errorString();
+ if (errorString.isEmpty()) {
+ emit errorMessage(i18nc("@info:status", "Unknown error."));
+ } else {
+ emit errorMessage(job->errorString());
+ }
}
}
/***************************************************************************
- * Copyright (C) 2006 by Peter Penz *
- * peter.penz@gmx.at *
+ * Copyright (C) 2006-2009 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 *
#include <kdirlister.h>
/**
- * @brief Extends the class KDirLister by emitting an error
- * signal containing text.
- *
- * @author Peter Penz
+ * @brief Extends the class KDirLister by emitting a signal when an
+ * error occured instead of showing an error dialog.
*/
class DolphinDirLister : public KDirLister
{