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
PIM
PIM Messagelib
Commits
8390b4eb
Commit
8390b4eb
authored
Jun 15, 2021
by
Laurent Montel
😁
Browse files
Fix enable/disable ok button
parent
b8906845
Changes
1
Hide whitespace changes
Inline
Side-by-side
messagelist/src/core/widgets/filternamewidget.cpp
View file @
8390b4eb
...
...
@@ -27,7 +27,8 @@ FilterNameWidget::FilterNameWidget(QWidget *parent)
mainLayout
->
addWidget
(
label
);
mainLayout
->
addWidget
(
mName
);
connect
(
mName
,
&
QLineEdit
::
textChanged
,
this
,
[
this
](
const
QString
&
str
)
{
Q_EMIT
updateOkButton
(
!
str
.
trimmed
().
isEmpty
());
const
QString
trimmedStr
=
str
.
trimmed
();
Q_EMIT
updateOkButton
(
!
trimmedStr
.
isEmpty
()
&&
!
mFilterListNames
.
contains
(
trimmedStr
));
});
}
...
...
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