aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-14 12:44:05 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit33ca8d485c0973d30290163a198e81bd511cf0ec (patch)
tree1be9a1582d4185784edc0ac7a920faec0db54b1e
parent2ae438327b0c5cbe3fbc3a45ac1069fed7709326 (diff)
downloadscummvm-rg350-33ca8d485c0973d30290163a198e81bd511cf0ec.tar.gz
scummvm-rg350-33ca8d485c0973d30290163a198e81bd511cf0ec.tar.bz2
scummvm-rg350-33ca8d485c0973d30290163a198e81bd511cf0ec.zip
GUI: Fix StorageWizardDialog
It now shows a MessageDialog (its message label is hidden in some cases).
-rw-r--r--gui/storagewizarddialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/storagewizarddialog.cpp b/gui/storagewizarddialog.cpp
index 86513e2980..393b8263ef 100644
--- a/gui/storagewizarddialog.cpp
+++ b/gui/storagewizarddialog.cpp
@@ -21,9 +21,9 @@
*/
#include "gui/storagewizarddialog.h"
-#include "gui/widgets/list.h"
-#include "gui/widget.h"
#include "gui/gui-manager.h"
+#include "gui/message.h"
+#include "gui/widget.h"
#include "backends/cloud/cloudmanager.h"
#ifdef USE_SDL_NET
#include "backends/networking/sdl_net/localwebserver.h"
@@ -140,7 +140,8 @@ void StorageWizardDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
}
case kOpenUrlCmd: {
if (!Networking::Browser::openUrl(getUrl())) {
- _messageWidget->setLabel(_("Failed to open URL!"));
+ MessageDialog alert(_("Failed to open URL!\nYou should navigate there manually then."));
+ alert.runModal();
}
break;
}