Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
4cf41db6
Commit
4cf41db6
authored
Jul 09, 2020
by
Martin Tobias Holmedahl Sandsmark
Committed by
Kurt Hindenburg
Jul 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't allow running commands in read-only mode
parent
62f99d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/Session.cpp
src/Session.cpp
+4
-0
No files found.
src/Session.cpp
View file @
4cf41db6
...
...
@@ -928,6 +928,10 @@ void Session::sendText(const QString& text) const
// Only D-Bus calls this function
void
Session
::
runCommand
(
const
QString
&
command
)
const
{
if
(
isReadOnly
())
{
return
;
}
sendText
(
command
+
QLatin1Char
(
'\n'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment