diff options
Diffstat (limited to 'pokemodr/MapWildListUI.cpp')
| -rw-r--r-- | pokemodr/MapWildListUI.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pokemodr/MapWildListUI.cpp b/pokemodr/MapWildListUI.cpp index 1931277e..00f332eb 100644 --- a/pokemodr/MapWildListUI.cpp +++ b/pokemodr/MapWildListUI.cpp @@ -31,7 +31,6 @@ MapWildListUI::MapWildListUI(MapWildList* wildList, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(wildList, new MapWildList(*wildList)); - connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); connect(modified(), SIGNAL(error(const QString&)), this, SLOT(setGui())); connect(modified(), SIGNAL(error(const QString&)), this, SLOT(errorMessage(const QString&))); connect(modified(), SIGNAL(warning(const QString&)), this, SLOT(warningMessage(const QString&))); @@ -93,13 +92,13 @@ void MapWildListUI::setGui() varScope->setCurrentIndex(varScope->findData(static_cast<MapWildList*>(modified())->scope())); } -void MapWildListUI::on_buttonApply_clicked() +void MapWildListUI::apply() { *static_cast<MapWildList*>(original()) = *static_cast<MapWildList*>(modified()); emit(changed(false)); } -void MapWildListUI::on_buttonDiscard_clicked() +void MapWildListUI::discard() { *static_cast<MapWildList*>(modified()) = *static_cast<MapWildList*>(original()); setGui(); |
