X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c161b895ffd8d62371ec288cf4105386350a8a3c..7908aff3b5ebe4484d391c1fc4797e9dae2300b2:/src/dolphinpart.cpp
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp
index 37ffe9070..e2e5393da 100644
--- a/src/dolphinpart.cpp
+++ b/src/dolphinpart.cpp
@@ -85,6 +85,10 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent,
this, &DolphinPart::slotItemActivated);
connect(m_view, &DolphinView::itemsActivated,
this, &DolphinPart::slotItemsActivated);
+ connect(m_view, &DolphinView::statusBarTextChanged, this, [this](const QString &text) {
+ const QString escapedText = Qt::convertFromPlainText(text);
+ Q_EMIT ReadOnlyPart::setStatusBarText(QStringLiteral("%1").arg(escapedText));
+ });
connect(m_view, &DolphinView::tabRequested,
this, &DolphinPart::createNewWindow);
connect(m_view, &DolphinView::requestContextMenu,
@@ -197,9 +201,6 @@ void DolphinPart::createActions()
createGoAction("go_network_folders", "folder-remote",
i18nc("@action:inmenu Go", "&Network Folders"), QStringLiteral("remote:/"),
goActionGroup);
- createGoAction("go_settings", "preferences-system",
- i18nc("@action:inmenu Go", "Sett&ings"), QStringLiteral("settings:/"),
- goActionGroup);
createGoAction("go_trash", "user-trash",
i18nc("@action:inmenu Go", "Trash"), QStringLiteral("trash:/"),
goActionGroup);
@@ -566,7 +567,7 @@ QString DolphinPart::localFilePathOrHome() const
void DolphinPart::slotOpenTerminal()
{
- KToolInvocation::invokeTerminal(QString(), localFilePathOrHome());
+ KToolInvocation::invokeTerminal(QString(), {}, localFilePathOrHome());
}
void DolphinPart::slotFindFile()
@@ -597,8 +598,7 @@ void DolphinPart::updateNewMenu()
void DolphinPart::updateStatusBar()
{
- const QString escapedText = Qt::convertFromPlainText(m_view->statusBarText());
- Q_EMIT ReadOnlyPart::setStatusBarText(QStringLiteral("%1").arg(escapedText));
+ m_view->requestStatusBarText();
}
void DolphinPart::updateProgress(int percent)