mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -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->setData(point);
|
||||
connect(&menu, SIGNAL(triggered(QAction *)), this, SLOT(filterRemove(QAction *)));
|
||||
connect(&menu, &QMenu::triggered, this, &DeckEditorFilterDockWidget::filterRemove);
|
||||
menu.exec(filterView->mapToGlobal(point));
|
||||
}
|
||||
|
||||
void DeckEditorFilterDockWidget::filterRemove(QAction *action)
|
||||
void DeckEditorFilterDockWidget::filterRemove(const QAction *action)
|
||||
{
|
||||
QPoint point;
|
||||
QModelIndex idx;
|
||||
|
|
|
|||
|
|
@ -28,10 +28,9 @@ private:
|
|||
KeySignals filterViewKeySignals;
|
||||
QWidget *filterBox;
|
||||
|
||||
void filterRemove(QAction *action);
|
||||
|
||||
private slots:
|
||||
void filterViewCustomContextMenu(const QPoint &point);
|
||||
void filterRemove(const QAction *action);
|
||||
void actClearFilterAll();
|
||||
void actClearFilterOne();
|
||||
void refreshShortcuts();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue