From d73a8a62c2d77b2abf3cb1fb53b7acee4863089f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 29 Jun 2016 13:36:20 +0200 Subject: gui/{options,main}: rename identifier only --- gui/options-dialog.cpp | 2 +- gui/options-dialog.hpp | 2 +- gui/ui.cpp | 2 +- 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 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); } } -- cgit v1.2.3