Commit 10a36f3a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix initialize variable

parent d1fc1acc
Pipeline #39706 passed with stage
in 8 minutes and 44 seconds
......@@ -77,8 +77,8 @@ public:
QPushButton *mDownButton = nullptr;
QPushButton *mCustomButton = nullptr;
QVBoxLayout *mButtonLayout = nullptr;
QString mAddDialogLabel;
QString mRemoveDialogLabel;
QString mAddDialogLabel = i18n("New entry:");
QString mRemoveDialogLabel = i18n("Do you want to remove selected text?");
};
SimpleStringListEditor::SimpleStringListEditor(QWidget *parent, ButtonCode buttons, const QString &addLabel, const QString &removeLabel, const QString &modifyLabel, const QString &addDialogLabel)
......@@ -366,12 +366,12 @@ void SimpleStringListEditor::slotModify()
void SimpleStringListEditor::setRemoveDialogLabel(const QString &removeDialogLabel)
{
d->mRemoveDialogLabel = removeDialogLabel.isEmpty() ? i18n("Do you want to remove selected text?") : removeDialogLabel;
d->mRemoveDialogLabel = removeDialogLabel;
}
void SimpleStringListEditor::setAddDialogLabel(const QString &addDialogLabel)
{
d->mAddDialogLabel = addDialogLabel.isEmpty() ? i18n("New entry:") : addDialogLabel;
d->mAddDialogLabel = addDialogLabel;
}
void SimpleStringListEditor::slotUp()
......
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