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
Kate
Commits
3b73cba7
Commit
3b73cba7
authored
Apr 25, 2021
by
Waqar Ahmed
Browse files
Fix possible leaks in git commit dialog
parent
71d86b57
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitcommitdialog.cpp
View file @
3b73cba7
...
...
@@ -60,7 +60,7 @@ static void changeTextColorToRed(QLineEdit *lineEdit, const QColor &red)
GitCommitDialog
::
GitCommitDialog
(
const
QString
&
lastCommit
,
const
QFont
&
font
,
QWidget
*
parent
,
Qt
::
WindowFlags
f
)
:
QDialog
(
parent
,
f
)
,
m_le
(
new
QLineEdit
())
,
m_le
(
new
QLineEdit
(
this
))
{
setWindowTitle
(
i18n
(
"Commit Changes"
));
...
...
@@ -79,7 +79,7 @@ GitCommitDialog::GitCommitDialog(const QString &lastCommit, const QFont &font, Q
m_pe
.
setPlaceholderText
(
i18n
(
"Extended commit description..."
));
m_pe
.
setFont
(
font
);
QVBoxLayout
*
vlayout
=
new
QVBoxLayout
;
QVBoxLayout
*
vlayout
=
new
QVBoxLayout
(
this
)
;
vlayout
->
setContentsMargins
(
4
,
4
,
4
,
4
);
setLayout
(
vlayout
);
...
...
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