diff options
-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"); |