aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/aooptionsdialog.cpp
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2024-07-11 15:52:34 +0200
committerSalanto <62221668+Salanto@users.noreply.github.com>2024-07-11 15:52:34 +0200
commitd9aada29009c66c6d146d88b20ab43f967653566 (patch)
treed3d93edb4d4ff93b3fda493f0e0e1a68bcdb3a78 /src/widgets/aooptionsdialog.cpp
parentefd2571459924f40718130f7edd28a72a76b12d7 (diff)
Add Courtroom position restore
Diffstat (limited to 'src/widgets/aooptionsdialog.cpp')
-rw-r--r--src/widgets/aooptionsdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/aooptionsdialog.cpp b/src/widgets/aooptionsdialog.cpp
index 4d55652e..704e407f 100644
--- a/src/widgets/aooptionsdialog.cpp
+++ b/src/widgets/aooptionsdialog.cpp
@@ -157,10 +157,10 @@ void AOOptionsDialog::registerOption(const QString &widgetName, V (Options::*get
}
OptionEntry entry;
- entry.load = [=] {
+ entry.load = [=, this] {
setWidgetData<T, V>(widget, (Options::getInstance().*getter)());
};
- entry.save = [=] {
+ entry.save = [=, this] {
(Options::getInstance().*setter)(widgetData<T, V>(widget));
};
@@ -323,7 +323,7 @@ void AOOptionsDialog::setupUI()
connect(ui_theme_reload_button, &QPushButton::clicked, this, &::AOOptionsDialog::onReloadThemeClicked);
FROM_UI(QPushButton, theme_folder_button);
- connect(ui_theme_folder_button, &QPushButton::clicked, this, [=] {
+ connect(ui_theme_folder_button, &QPushButton::clicked, this, [=, this] {
QString p_path = ao_app->get_real_path(ao_app->get_theme_path("", ui_theme_combobox->itemText(ui_theme_combobox->currentIndex())));
if (!dir_exists(p_path))
{