Fixed a crash when the user canceled the download from webservice dialog.

Null references, ah, love them.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-10-24 22:38:41 -02:00
parent 5eb2cc4594
commit d2b87e0eb5

View file

@ -16,6 +16,7 @@ struct dive_table gps_location_table;
static bool merge_locations_into_dives(void);
WebServices::WebServices(QWidget* parent, Qt::WindowFlags f): QDialog(parent, f)
, reply(0)
{
ui.setupUi(this);
connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(buttonClicked(QAbstractButton*)));