┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-03-15 00:12:33 +0100
committerFrank Reininghaus <[email protected]>2013-03-15 00:12:49 +0100
commit4bcda6c7e70ac69f73a1ac56b0b472ddfee49621 (patch)
tree938530a14a9ccda72e54afffaf2dc3ca55266487 /src
parent11e2974a9fb89e748c56f01bf3a30b93ea242af0 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/panels/terminal/terminalpanel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp
index f6d3a5981..28c6a9383 100644
--- a/src/panels/terminal/terminalpanel.cpp
+++ b/src/panels/terminal/terminalpanel.cpp
@@ -144,6 +144,7 @@ void TerminalPanel::changeDir(const KUrl& url)
void TerminalPanel::sendCdToTerminal(const QString& dir)
{
if (dir == m_konsolePartCurrentDirectory) {
+ m_clearTerminal = false;
return;
}