mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 09:03:54 -07:00
Fix delete action in filters not working (#5765)
* Fix delete action in filters not working * move filterRemove under slots
This commit is contained in:
parent
c71685b261
commit
9bc6ae1567
2 changed files with 3 additions and 4 deletions
|
|
@ -96,11 +96,11 @@ void DeckEditorFilterDockWidget::filterViewCustomContextMenu(const QPoint &point
|
||||||
|
|
||||||
action = menu.addAction(QString("delete"));
|
action = menu.addAction(QString("delete"));
|
||||||
action->setData(point);
|
action->setData(point);
|
||||||
connect(&menu, SIGNAL(triggered(QAction *)), this, SLOT(filterRemove(QAction *)));
|
connect(&menu, &QMenu::triggered, this, &DeckEditorFilterDockWidget::filterRemove);
|
||||||
menu.exec(filterView->mapToGlobal(point));
|
menu.exec(filterView->mapToGlobal(point));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeckEditorFilterDockWidget::filterRemove(QAction *action)
|
void DeckEditorFilterDockWidget::filterRemove(const QAction *action)
|
||||||
{
|
{
|
||||||
QPoint point;
|
QPoint point;
|
||||||
QModelIndex idx;
|
QModelIndex idx;
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,9 @@ private:
|
||||||
KeySignals filterViewKeySignals;
|
KeySignals filterViewKeySignals;
|
||||||
QWidget *filterBox;
|
QWidget *filterBox;
|
||||||
|
|
||||||
void filterRemove(QAction *action);
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void filterViewCustomContextMenu(const QPoint &point);
|
void filterViewCustomContextMenu(const QPoint &point);
|
||||||
|
void filterRemove(const QAction *action);
|
||||||
void actClearFilterAll();
|
void actClearFilterAll();
|
||||||
void actClearFilterOne();
|
void actClearFilterOne();
|
||||||
void refreshShortcuts();
|
void refreshShortcuts();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue