Commit 6be6988f authored by Frank Reininghaus's avatar Frank Reininghaus

Prevent accidental deletion of home directory in Terminal Panel

The protection against unwanted execution of "rm -rf" when changing the
directory while entering the command did not work if there was never any
automatic "cd" command sent to the terminal before.

This patch ensures that Terminal Panel's member m_clearTerminal is
false after the initialization of the panel, such that the protection is
effective after that.

BUG: 316300
FIXED-IN: 4.10.2
REVIEW: 109431
parent de34d5ed
......@@ -144,6 +144,7 @@ void TerminalPanel::changeDir(const KUrl& url)
void TerminalPanel::sendCdToTerminal(const QString& dir)
if (dir == m_konsolePartCurrentDirectory) {
m_clearTerminal = false;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment