From 9d4c1e2aa43fe8016cdcc4780ae177b4fd02e458 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Wed, 19 Feb 2025 00:26:37 -0800 Subject: [PATCH] rename method --- cockatrice/src/client/tabs/tab_deck_editor.cpp | 2 +- .../widgets/visual_deck_storage/visual_deck_storage_widget.cpp | 2 +- cockatrice/src/deck/deck_edit_event_bus.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/client/tabs/tab_deck_editor.cpp b/cockatrice/src/client/tabs/tab_deck_editor.cpp index 07ccfd071..1707d9de7 100644 --- a/cockatrice/src/client/tabs/tab_deck_editor.cpp +++ b/cockatrice/src/client/tabs/tab_deck_editor.cpp @@ -746,7 +746,7 @@ TabDeckEditor::TabDeckEditor(TabSupervisor *_tabSupervisor) : Tab(_tabSupervisor connect(&SettingsCache::instance().shortcuts(), SIGNAL(shortCutChanged()), this, SLOT(refreshShortcuts())); refreshShortcuts(); - connect(this, &TabDeckEditor::deckSaved, DeckEditEventBus::instance(), &DeckEditEventBus::deckModified); + connect(this, &TabDeckEditor::deckSaved, DeckEditEventBus::instance(), &DeckEditEventBus::deckFileModified); loadLayout(); } diff --git a/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp b/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp index b293a5698..e579c9460 100644 --- a/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp +++ b/cockatrice/src/client/ui/widgets/visual_deck_storage/visual_deck_storage_widget.cpp @@ -111,7 +111,7 @@ VisualDeckStorageWidget::VisualDeckStorageWidget(QWidget *parent) : QWidget(pare retranslateUi(); - connect(DeckEditEventBus::instance(), &DeckEditEventBus::deckModified, this, + connect(DeckEditEventBus::instance(), &DeckEditEventBus::deckFileModified, this, &VisualDeckStorageWidget::handleDeckModified); // Don't waste time processing the cards if they're going to get refreshed anyway once the db finishes loading diff --git a/cockatrice/src/deck/deck_edit_event_bus.h b/cockatrice/src/deck/deck_edit_event_bus.h index 44434acbc..6bdec3927 100644 --- a/cockatrice/src/deck/deck_edit_event_bus.h +++ b/cockatrice/src/deck/deck_edit_event_bus.h @@ -27,7 +27,7 @@ signals: * Should be emitted when a change has been written to a deck file. * @param filePath Absolute path to the deck file */ - void deckModified(const QString &filePath); + void deckFileModified(const QString &filePath); }; #endif // DECK_EDIT_EVENT_BUS_H