Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 52d72588 authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused boolean

parent 11a999b7
......@@ -56,7 +56,6 @@ Q_GLOBAL_STATIC(InfoRegExp, s_regexpeditorinstalled)
RegexpEditorLineEdit::RegexpEditorLineEdit(QWidget *parent, const QList<QVariant> &)
: KSieveUi::AbstractRegexpEditorLineEdit(parent)
, mIsRegExpMode(false)
{
QHBoxLayout *mainLayout = new QHBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......@@ -116,9 +115,8 @@ void RegexpEditorLineEdit::slotOpenRegexpEditor()
void RegexpEditorLineEdit::switchToRegexpEditorLineEdit(bool regexpEditor)
{
mIsRegExpMode = regexpEditor;
if (s_regexpeditorinstalled->status == InfoRegExp::Installed) {
mRegExpEditorButton->setVisible(mIsRegExpMode);
mRegExpEditorButton->setVisible(regexpEditor);
}
}
......
......@@ -43,7 +43,6 @@ private:
void slotOpenRegexpEditor();
QLineEdit *mLineEdit;
QToolButton *mRegExpEditorButton;
bool mIsRegExpMode;
};
#endif // REGEXPEDITORLINEEDIT_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment