Skip to content

Commit

Permalink
ALL: Fix compilation with enabled sdl_net and disabled cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Oct 17, 2016
1 parent e8b70a4 commit c5e233b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gui/options.cpp
Expand Up @@ -1312,15 +1312,15 @@ GlobalOptionsDialog::GlobalOptionsDialog(LauncherDialog *launcher)
ScrollContainerWidget *container = new ScrollContainerWidget(tab, "GlobalOptions_Cloud.Container", kCloudTabContainerReflowCmd);
container->setTarget(this);

#if defined(USE_CLOUD) && defined(USE_LIBCURL)
#ifdef USE_LIBCURL
_selectedStorageIndex = CloudMan.getStorageIndex();
#else
_selectedStorageIndex = 0;
#endif

_storagePopUpDesc = new StaticTextWidget(container, "GlobalOptions_Cloud_Container.StoragePopupDesc", _("Storage:"), _("Active cloud storage"));
_storagePopUp = new PopUpWidget(container, "GlobalOptions_Cloud_Container.StoragePopup");
#if defined(USE_CLOUD) && defined(USE_LIBCURL)
#ifdef USE_LIBCURL
Common::StringArray list = CloudMan.listStorages();
for (uint32 i = 0; i < list.size(); ++i)
_storagePopUp->appendEntry(list[i], i);
Expand Down Expand Up @@ -1368,7 +1368,7 @@ GlobalOptionsDialog::GlobalOptionsDialog(LauncherDialog *launcher)
#ifdef USE_SDL_NET
_serverWasRunning = false;
#endif
#endif
#endif // USE_CLOUD

// Activate the first tab
tab->setActiveTab(0);
Expand Down Expand Up @@ -1553,6 +1553,7 @@ void GlobalOptionsDialog::close() {
}
}
#endif // USE_LIBCURL

#ifdef USE_SDL_NET
#ifdef NETWORKING_LOCALWEBSERVER_ENABLE_PORT_OVERRIDE
// save server's port
Expand All @@ -1567,7 +1568,7 @@ void GlobalOptionsDialog::close() {
#endif // USE_SDL_NET
#endif // USE_CLOUD
}
#ifdef USE_SDL_NET
#if defined(USE_CLOUD) && defined(USE_SDL_NET)
if (LocalServer.isRunning()) {
LocalServer.stop();
}
Expand Down

0 comments on commit c5e233b

Please sign in to comment.