From 77311eaf0de9fd22f42df82adf69839091cc94c8 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 27 Apr 2010 11:50:00 +0200 Subject: Remove the "is readable" check. Now things seem work. Can someone explain how can we read a not readable dir?? CCBUG: 228660 --- src/application.cpp | 3 +++ src/protocolhandler.cpp | 16 ++-------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/application.cpp b/src/application.cpp index d2754ec1..fd030232 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -400,6 +400,9 @@ void Application::newWindow() void Application::updateConfiguration() { + // FIXME: + // all things related to mainview can be + // improved/moved/replicated in all the mainwindows MainView *view = mainWindow()->mainView(); // ============== General ================== diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index b88f23fa..1ee026a8 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -211,21 +211,9 @@ QString ProtocolHandler::dirHandling(const KFileItemList &list) { return QString("rekonq error, sorry :("); } - - KFileItem mainItem = _lister->rootItem(); - if (mainItem.isNull()) - { - QString errStr = i18nc("%1=an URL", "Error opening '%1': No such file or directory.", _url.prettyUrl() ); - return errStr; - } - - if (!mainItem.isReadable()) - { - QString errStr = i18nc("%1=an URL", "Unable to read %1", _url.prettyUrl() ); - return errStr; - } - KUrl rootUrl = mainItem.url(); + // let me modify it.. + KUrl rootUrl = _url; // display "rekonq info" page QString infoFilePath = KStandardDirs::locate("data", "rekonq/htmls/rekonqinfo.html"); -- cgit v1.2.1