X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/7fbae445277374fb2bacfcd7c04e8d7fbb2c3f05..b1d5b6b7467d15417131c8df8fdecb22b2008db4:/src/urlnavigator.cpp diff --git a/src/urlnavigator.cpp b/src/urlnavigator.cpp index 1f9295cb5..bc2c5914e 100644 --- a/src/urlnavigator.cpp +++ b/src/urlnavigator.cpp @@ -51,7 +51,7 @@ #include #include "bookmarkselector.h" -#include "dolphin.h" +#include "dolphinmainwindow.h" #include "dolphinsettings.h" #include "dolphinstatusbar.h" #include "dolphinview.h" @@ -203,7 +203,7 @@ KUrl UrlNavigator::url(int index) const QString path(url().pathOrUrl()); path = path.section('/', 0, index); - if (path.at(path.length()) != '/') + if (path.at(path.length()-1) != '/') { path.append('/'); } @@ -470,9 +470,9 @@ void UrlNavigator::updateContent() QToolTip::remove(m_toggleButton); QString path(url().pathOrUrl()); - const KAction* action = Dolphin::mainWin().actionCollection()->action("editable_location"); + const KAction* action = dolphinView()->mainWindow()->actionCollection()->action("editable_location"); // TODO: registry of default shortcuts - QString shortcut = action? action->shortcutText() : "Ctrl+L"; + QString shortcut = action? action->shortcut().toString() : "Ctrl+L"; if (m_toggleButton->isChecked()) { delete m_protocols; m_protocols = 0; delete m_protocolSeparator; m_protocolSeparator = 0;