summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-27 11:50:00 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-27 11:50:00 +0200
commit77311eaf0de9fd22f42df82adf69839091cc94c8 (patch)
tree5b139906dd58d6eeea15cdc79100d9008638cab9 /src/protocolhandler.cpp
parentMerge branch 'ENCODINGS' (diff)
downloadrekonq-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/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");