From fa07f554e2894c7720a41c1fbb379743dd6c7285 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 14 Nov 2013 16:50:46 -0800 Subject: Properly reset the state of the download dialog before dismissing Re-enable buttons that should be enabled by default, disable the others, set the status to empty, make the progress bar go back to zero. Signed-off-by: Thiago Macieira --- qt-ui/subsurfacewebservices.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/subsurfacewebservices.h') diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h index 0400fd503..0cd083001 100644 --- a/qt-ui/subsurfacewebservices.h +++ b/qt-ui/subsurfacewebservices.h @@ -25,6 +25,8 @@ private slots: virtual void buttonClicked(QAbstractButton* button) = 0; protected: + void resetState(); + Ui::WebServices ui; QNetworkReply *reply; QByteArray downloadedData; -- cgit v1.2.3-70-g09d2