mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 03:53:56 -07:00
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:
parent
b2ad2acff3
commit
a5de633c64
3 changed files with 52 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue