From d795c77ef53720fa423d9b827a66d1bea8b8e761 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Tue, 12 Jul 2016 14:00:11 +0600 Subject: GUI: Fix DownloadDialog detection Now it calls Launcher directly, so it updates games list on success. --- gui/downloaddialog.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gui/downloaddialog.h') diff --git a/gui/downloaddialog.h b/gui/downloaddialog.h index 39c4cea2e4..4b277c8334 100644 --- a/gui/downloaddialog.h +++ b/gui/downloaddialog.h @@ -28,6 +28,7 @@ #include namespace GUI { +class LauncherDialog; class CommandSender; class EditTextWidget; @@ -43,6 +44,7 @@ enum DownloadProgress { }; class DownloadDialog : public Dialog { + LauncherDialog *_launcher; BrowserDialog *_browser; RemoteBrowserDialog *_remoteBrowser; @@ -58,10 +60,9 @@ class DownloadDialog : public Dialog { void refreshWidgets(); bool selectDirectories(); - void addGame(); public: - DownloadDialog(uint32 storageId); + DownloadDialog(uint32 storageId, LauncherDialog *launcher); virtual ~DownloadDialog(); virtual void open(); -- cgit v1.2.3