Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
6ff0a107
Commit
6ff0a107
authored
Aug 16, 2022
by
Waqar Ahmed
Browse files
Git: Fix create new branch not working
parent
98ca7d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/quickdialog.cpp
View file @
6ff0a107
...
...
@@ -142,10 +142,7 @@ HUDDialog::HUDDialog(QWidget *parent, QWidget *mainWindow)
m_treeView
.
setItemDelegate
(
m_delegate
);
connect
(
&
m_lineEdit
,
&
QLineEdit
::
returnPressed
,
this
,
[
this
]
{
auto
index
=
m_treeView
.
currentIndex
();
if
(
index
.
isValid
())
{
slotReturnPressed
(
index
);
}
slotReturnPressed
(
m_treeView
.
currentIndex
());
});
// user can add this as necessary
setFilteringEnabled
(
true
);
...
...
@@ -173,6 +170,9 @@ HUDDialog::~HUDDialog()
void
HUDDialog
::
slotReturnPressed
(
const
QModelIndex
&
index
)
{
Q_EMIT
itemExecuted
(
index
);
clearLineEdit
();
hide
();
}
void
HUDDialog
::
setDelegate
(
HUDStyleDelegate
*
delegate
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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