diff options
author | Bastien Bouclet | 2016-09-10 07:46:52 +0200 |
---|---|---|
committer | Bastien Bouclet | 2016-09-10 07:46:52 +0200 |
commit | ff217ea033aed69289bcf1400212917f01d7bf5e (patch) | |
tree | e41c50979b07c1941523ed23eb1832a93f109f78 | |
parent | 1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c (diff) | |
download | scummvm-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.cpp | 5 |
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); |