aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2016-09-10 07:46:52 +0200
committerBastien Bouclet2016-09-10 07:46:52 +0200
commitff217ea033aed69289bcf1400212917f01d7bf5e (patch)
treee41c50979b07c1941523ed23eb1832a93f109f78
parent1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c (diff)
downloadscummvm-rg350-ff217ea033aed69289bcf1400212917f01d7bf5e.tar.gz
scummvm-rg350-ff217ea033aed69289bcf1400212917f01d7bf5e.tar.bz2
scummvm-rg350-ff217ea033aed69289bcf1400212917f01d7bf5e.zip
GUI: Don't show the "Open URL" button if there is no backend support
-rw-r--r--gui/storagewizarddialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/storagewizarddialog.cpp b/gui/storagewizarddialog.cpp
index a207c7b9f5..22b87f5244 100644
--- a/gui/storagewizarddialog.cpp
+++ b/gui/storagewizarddialog.cpp
@@ -292,7 +292,10 @@ void StorageWizardDialog::containerWidgetsReflow() {
if (_picture) {
_picture->setVisible(g_system->getOverlayWidth() > 320);
}
- if (_openUrlWidget) _openUrlWidget->setVisible(true);
+ if (_openUrlWidget) {
+ bool visible = g_system->hasFeature(OSystem::kFeatureOpenUrl);
+ _openUrlWidget->setVisible(visible);
+ }
if (_pasteCodeWidget) {
bool visible = showFields && g_system->hasFeature(OSystem::kFeatureClipboardSupport);
_pasteCodeWidget->setVisible(visible);