diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-27 11:50:00 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-27 11:50:00 +0200 |
commit | 77311eaf0de9fd22f42df82adf69839091cc94c8 (patch) | |
tree | 5b139906dd58d6eeea15cdc79100d9008638cab9 /src | |
parent | Merge branch 'ENCODINGS' (diff) | |
download | rekonq-77311eaf0de9fd22f42df82adf69839091cc94c8.tar.xz |
Remove the "is readable" check. Now things seem work.
Can someone explain how can we read a not readable dir??
CCBUG: 228660
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 3 | ||||
-rw-r--r-- | 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"); |