Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
ff467997
Commit
ff467997
authored
Nov 26, 2021
by
Tomaz Canabrava
Browse files
Block clicks on the tree view if we are editing a ssh entry
parent
3021b26e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/SSHManager/sshmanagerpluginwidget.cpp
View file @
ff467997
...
...
@@ -259,6 +259,7 @@ void SSHManagerTreeWidget::clearSshInfo()
ui
->
hostname
->
setText
({});
ui
->
port
->
setText
(
QStringLiteral
(
"22"
));
ui
->
sshkey
->
setText
({});
ui
->
treeView
->
setEnabled
(
true
);
}
void
SSHManagerTreeWidget
::
hideInfoPane
()
...
...
@@ -294,6 +295,12 @@ void SSHManagerTreeWidget::showInfoPane()
ui
->
btnAdd
->
setText
(
tr
(
"Add"
));
disconnect
(
ui
->
btnAdd
,
nullptr
,
this
,
nullptr
);
connect
(
ui
->
btnAdd
,
&
QPushButton
::
clicked
,
this
,
&
SSHManagerTreeWidget
::
addSshInfo
);
// Disable the tree view when in edit mode.
// This is important so the user don't click around
// losing the configuration he did.
// this will be enabled again when the user closes the panel.
ui
->
treeView
->
setEnabled
(
false
);
}
void
SSHManagerTreeWidget
::
setModel
(
SSHManagerModel
*
model
)
...
...
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