summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/options-dialog.cpp2
-rw-r--r--gui/options-dialog.hpp2
-rw-r--r--gui/ui.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp
index 188ebc0c..fb0b3454 100644
--- a/gui/options-dialog.cpp
+++ b/gui/options-dialog.cpp
@@ -152,7 +152,7 @@ void OptionsDialog::doOK()
main.b->save();
ui.game_detector->save();
close();
- emit reload();
+ emit saving();
}
void OptionsDialog::doCancel()
diff --git a/gui/options-dialog.hpp b/gui/options-dialog.hpp
index 6b04aa09..66386a79 100644
--- a/gui/options-dialog.hpp
+++ b/gui/options-dialog.hpp
@@ -10,7 +10,7 @@ class OptionsDialog: public QWidget
{
Q_OBJECT
signals:
- void reload();
+ void saving();
public:
OptionsDialog(std::function<void(bool)> pause_keybindings);
private:
diff --git a/gui/ui.cpp b/gui/ui.cpp
index 9e81d137..1c7e25e9 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -497,7 +497,7 @@ void MainWindow::show_options_dialog()
{
if (mk_window(&options_widget, [&](bool flag) -> void { set_keys_enabled(!flag); }))
{
- connect(options_widget.get(), SIGNAL(reload()), this, SLOT(reload_options()));
+ connect(options_widget.get(), &OptionsDialog::saving, this, &MainWindow::reload_options);
}
}