summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r--src/protocolhandler.cpp16
1 files changed, 2 insertions, 14 deletions
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");