diff options
| author | Frank Reininghaus <[email protected]> | 2014-10-23 23:17:43 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2014-10-23 23:17:43 +0200 |
| commit | 9d6f50ac5096282841739c2feedf3aee3671927d (patch) | |
| tree | 3be3713dbdb1119a55e6cf6f6f2f4fab8287cd84 | |
| parent | a58f15985434b38bb63359e259a9c7279d180a5c (diff) | |
Connect to the currentDirectoryChanged signal after the shell setup
This fixes the problem that the view URL may be reset to the Home URL
when opening the Terminal Panel while browsing a remote URL. Moreover,
it fixes crashes that can occur when the signal is received during the
shell setup if the DolphinMainWindow does not have a valid
m_activeViewContainer yet.
BUG: 339502
BUG: 340233
REVIEW: 120726
FIXED-IN: 4.14.3
| -rw-r--r-- | src/panels/terminal/terminalpanel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp index bfd3002f0..1e5a33617 100644 --- a/src/panels/terminal/terminalpanel.cpp +++ b/src/panels/terminal/terminalpanel.cpp @@ -116,11 +116,11 @@ void TerminalPanel::showEvent(QShowEvent* event) } } if (m_terminal) { - connect(m_konsolePart, SIGNAL(currentDirectoryChanged(QString)), - this, SLOT(slotKonsolePartCurrentDirectoryChanged(QString))); m_terminal->showShellInDir(url().toLocalFile()); changeDir(url()); m_terminalWidget->setFocus(); + connect(m_konsolePart, SIGNAL(currentDirectoryChanged(QString)), + this, SLOT(slotKonsolePartCurrentDirectoryChanged(QString))); } Panel::showEvent(event); |
