#include <kio/netaccess.h>
#include <kinputdialog.h>
#include <klocale.h>
+#include <kprotocolmanager.h>
#include <kmenu.h>
#include <kmenubar.h>
#include <kmessagebox.h>
void DolphinMainWindow::changeUrl(const KUrl& url)
{
- if (url.protocol().isEmpty()) {
+ if (!KProtocolManager::supportsListing(url)) {
// The URL navigator only checks for validity, not
// if the URL can be listed. An error message is
// shown due to DolphinViewContainer::restoreView().
setCentralWidget(centralWidget);
setupDockWidgets();
+ emit urlChanged(homeUrl);
setupGUI(Keys | Save | Create | ToolBar);
}
m_showMenuBar->setChecked(!menuBar()->isHidden()); // workaround for bug #171080
- emit urlChanged(homeUrl);
}
void DolphinMainWindow::setActiveViewContainer(DolphinViewContainer* viewContainer)