Commit b2c137fd authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Use QUrl::toDisplayString when presenting to the user

Strips out password information
parent c39ce059
Pipeline #111823 passed with stage
in 4 minutes and 56 seconds
......@@ -750,7 +750,7 @@ void DolphinMainWindow::slotAboutToShowBackPopupMenu()
int entries = 0;
m_backAction->menu()->clear();
for (int i = urlNavigator->historyIndex() + 1; i < urlNavigator->historySize() && entries < MaxNumberOfNavigationentries; ++i, ++entries) {
QAction* action = new QAction(urlNavigator->locationUrl(i).toString(QUrl::PreferLocalFile), m_backAction->menu());
QAction* action = new QAction(urlNavigator->locationUrl(i).toDisplayString(QUrl::PreferLocalFile), m_backAction->menu());
action->setData(i);
m_backAction->menu()->addAction(action);
}
......@@ -779,7 +779,7 @@ void DolphinMainWindow::slotAboutToShowForwardPopupMenu()
int entries = 0;
m_forwardAction->menu()->clear();
for (int i = urlNavigator->historyIndex() - 1; i >= 0 && entries < MaxNumberOfNavigationentries; --i, ++entries) {
QAction* action = new QAction(urlNavigator->locationUrl(i).toString(QUrl::PreferLocalFile), m_forwardAction->menu());
QAction* action = new QAction(urlNavigator->locationUrl(i).toDisplayString(QUrl::PreferLocalFile), m_forwardAction->menu());
action->setData(i);
m_forwardAction->menu()->addAction(action);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment