Fix filter inconsistency (#2480)

This commit is contained in:
M4tthewDE 2021-02-27 13:25:54 +01:00 committed by GitHub
parent 032a791ec1
commit 798384c931
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ ChannelFilterEditorDialog::ChannelFilterEditorDialog(QWidget *parent)
auto vbox = new QVBoxLayout(this);
auto filterVbox = new QVBoxLayout;
auto buttonBox = new QHBoxLayout;
auto okButton = new QPushButton("OK");
auto okButton = new QPushButton("Ok");
auto cancelButton = new QPushButton("Cancel");
okButton->setDefault(true);
@ -35,8 +35,8 @@ ChannelFilterEditorDialog::ChannelFilterEditorDialog(QWidget *parent)
buttonBox->addWidget(helpLabel);
buttonBox->addStretch(1);
buttonBox->addWidget(cancelButton);
buttonBox->addWidget(okButton);
buttonBox->addWidget(cancelButton);
QObject::connect(okButton, &QAbstractButton::clicked, [this] {
this->accept();

View file

@ -11,15 +11,15 @@ SelectChannelFiltersDialog::SelectChannelFiltersDialog(
auto vbox = new QVBoxLayout(this);
auto itemVbox = new QVBoxLayout;
auto buttonBox = new QHBoxLayout;
auto okButton = new QPushButton("OK");
auto okButton = new QPushButton("Ok");
auto cancelButton = new QPushButton("Cancel");
vbox->addLayout(itemVbox);
vbox->addLayout(buttonBox);
buttonBox->addStretch(1);
buttonBox->addWidget(cancelButton);
buttonBox->addWidget(okButton);
buttonBox->addWidget(cancelButton);
QObject::connect(okButton, &QAbstractButton::clicked, [this] {
this->accept();