diff --git a/src/Core/NamedSearch.cpp b/src/Core/NamedSearch.cpp index 6bede1b4c..b46294a6a 100644 --- a/src/Core/NamedSearch.cpp +++ b/src/Core/NamedSearch.cpp @@ -301,6 +301,9 @@ EditNamedSearches::EditNamedSearches(QWidget *parent, Context *context) : QDialo row4->addStretch(); deleteButton = new QPushButton(tr("Delete"), this); row4->addWidget(deleteButton); + row4->addStretch(); + closeButton = new QPushButton(tr("Close"), this); + row4->addWidget(closeButton); // Populate the list of named searches foreach(NamedSearch x, context->athlete->namedSearches->getList()) { @@ -319,6 +322,7 @@ EditNamedSearches::EditNamedSearches(QWidget *parent, Context *context) : QDialo // connect the buttons connect(addButton, SIGNAL(clicked()), this, SLOT(addClicked())); connect(deleteButton, SIGNAL(clicked()), this, SLOT(deleteClicked())); + connect(closeButton, SIGNAL(clicked()), this, SLOT(close())); connect(updateButton, SIGNAL(clicked()), this, SLOT(updateClicked())); connect(upButton, SIGNAL(clicked()), this, SLOT(upClicked())); connect(downButton, SIGNAL(clicked()), this, SLOT(downClicked())); diff --git a/src/Core/NamedSearch.h b/src/Core/NamedSearch.h index c3b30bee9..a4bc1e527 100644 --- a/src/Core/NamedSearch.h +++ b/src/Core/NamedSearch.h @@ -115,7 +115,8 @@ class EditNamedSearches : public QDialog *updateButton, *upButton, *downButton, - *deleteButton; + *deleteButton, + *closeButton; QIcon searchIcon, filterIcon; private slots: