From ff217ea033aed69289bcf1400212917f01d7bf5e Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 10 Sep 2016 07:46:52 +0200 Subject: [PATCH] GUI: Don't show the "Open URL" button if there is no backend support --- gui/storagewizarddialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/storagewizarddialog.cpp b/gui/storagewizarddialog.cpp index a207c7b9f587..22b87f524428 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);