┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorAntti Savolainen <[email protected]>2026-04-20 09:48:28 +0000
committerMéven Car <[email protected]>2026-04-20 09:48:28 +0000
commit07baa7bb68d3d3c8ed1f564ea42efa80684b3a23 (patch)
treef0a2be174f534a4951e69c85431b072228f30e2d /src/dolphinmainwindow.cpp
parentf0d681577363b8b0c87e51d6c32232fa394ea5cd (diff)
terminalpanel: allow refreshing the terminal location
When a program is running on front while the graphical view is being changed, that can make the terminal and file view working directories out of sync. I wasn't able to find a signal from Konsole for when the foreground program exits, so having the terminal respond to F5 is the second best thing. BUG: 510557
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 12ca26898..e6da0f5e0 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1171,6 +1171,7 @@ void DolphinMainWindow::reloadView()
clearStatusBar();
m_activeViewContainer->reload();
m_activeViewContainer->statusBar()->updateSpaceInfo();
+ Q_EMIT urlRefreshed(m_activeViewContainer->url());
}
void DolphinMainWindow::stopLoading()
@@ -2467,6 +2468,7 @@ void DolphinMainWindow::setupDockWidgets()
addDockWidget(Qt::BottomDockWidgetArea, terminalDock);
connect(this, &DolphinMainWindow::urlChanged, m_terminalPanel, &TerminalPanel::setUrl);
+ connect(this, &DolphinMainWindow::urlRefreshed, m_terminalPanel, &TerminalPanel::refreshUrl);
if (GeneralSettings::version() < 200) {
terminalDock->hide();