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
KDE PIM Add-ons
Commits
ec6ccc8b
Commit
ec6ccc8b
authored
Dec 15, 2021
by
Laurent Montel
😁
Browse files
Fix enabled/disable ok button
parent
fe1445f9
Pipeline
#110254
passed with stage
in 13 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kmail/checkbeforedeletemailplugins/confirmbeforedeleting/confirmbeforedeletingcreaterulewidget.cpp
View file @
ec6ccc8b
...
...
@@ -55,6 +55,12 @@ void ConfirmBeforeDeletingCreateRuleWidget::slotRuleTypeChanged(int index)
const
QString
str
=
mRuleTypeComboBox
->
itemData
(
index
).
toString
();
const
bool
isAStatus
=
(
str
==
QStringLiteral
(
"unread"
)
||
str
==
QStringLiteral
(
"important"
));
mPatternLineEdit
->
setEnabled
(
!
isAStatus
);
if
(
isAStatus
)
{
mPatternLineEdit
->
clear
();
Q_EMIT
updateOkButton
(
true
);
}
else
{
Q_EMIT
updateOkButton
(
!
mPatternLineEdit
->
text
().
trimmed
().
isEmpty
());
}
}
void
ConfirmBeforeDeletingCreateRuleWidget
::
setInfo
(
const
ConfirmBeforeDeletingCreateRuleWidget
::
ConfirmBeforeDeletingInfo
&
info
)
...
...
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