diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options.cpp | 4 | ||||
-rw-r--r-- | gui/options.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 7caef1f885..f7c9f60023 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -1447,7 +1447,7 @@ void OptionsDialog::setupGraphicsTab() { GlobalOptionsDialog::GlobalOptionsDialog(LauncherDialog *launcher) - : OptionsDialog(Common::ConfigManager::kApplicationDomain, "GlobalOptions"), _launcher(launcher) { + : OptionsDialog(Common::ConfigManager::kApplicationDomain, "GlobalOptions"), CommandSender(nullptr), _launcher(launcher) { #ifdef GUI_ENABLE_KEYSDIALOG _keysDialog = 0; #endif @@ -1755,6 +1755,7 @@ void GlobalOptionsDialog::build() { ScrollContainerWidget *container = new ScrollContainerWidget(tab, "GlobalOptions_Cloud.Container", kCloudTabContainerReflowCmd); container->setTarget(this); container->setBackgroundType(ThemeEngine::kDialogBackgroundNone); + setTarget(container); addCloudControls(container, "GlobalOptions_Cloud_Container.", context); #endif USE_LIBCURL @@ -2329,6 +2330,7 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3 CloudMan.disconnectStorage(_selectedStorageIndex); _redrawCloudTab = true; + sendCommand(kSetPositionCmd, 0); break; } #endif // USE_LIBCURL diff --git a/gui/options.h b/gui/options.h index c10dcca77c..fe9c93c411 100644 --- a/gui/options.h +++ b/gui/options.h @@ -237,7 +237,7 @@ protected: }; -class GlobalOptionsDialog : public OptionsDialog { +class GlobalOptionsDialog : public OptionsDialog, public CommandSender { public: GlobalOptionsDialog(LauncherDialog *launcher); ~GlobalOptionsDialog(); |