warn if "play top card until" filter expression doesn't match any card in database (#5243)

* make FilterString::check const

* implement thing
This commit is contained in:
RickyRister 2024-12-13 13:58:29 -08:00 committed by GitHub
parent b2ad2acff3
commit a5de633c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 5 deletions

View file

@ -6,7 +6,8 @@
#include <QLabel>
#include <QLineEdit>
#include <QSpinBox>
#include <QString>
class FilterString;
class DlgMoveTopCardsUntil : public QDialog
{
@ -18,6 +19,7 @@ class DlgMoveTopCardsUntil : public QDialog
QDialogButtonBox *buttonBox;
void validateAndAccept();
bool validateMatchExists(const FilterString &filterString);
public:
explicit DlgMoveTopCardsUntil(QWidget *parent = nullptr, QString expr = QString(), uint numberOfHits = 1);