From 4559a26e316931695f892b205257979f0ea13afa Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 28 Dec 2014 20:44:31 -0800 Subject: Fix ConfigureDiveComputer class This caused a crash when trying to call the firmware upgrade from the downloader - no idea how this worked for the other caller (from the main menu). Anyway, with this the "offer to upgrade the OSTC after a download from an OSTC that doesn't have the latest version" is indeed functional. Signed-off-by: Dirk Hohndel --- qt-ui/configuredivecomputerdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index 48c96e594..22a0d39c8 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -117,7 +117,7 @@ ConfigureDiveComputerDialog::ConfigureDiveComputerDialog(QWidget *parent) : ui.setupUi(this); deviceDetails = new DeviceDetails(this); - config = new ConfigureDiveComputer(this); + config = new ConfigureDiveComputer(); connect(config, SIGNAL(error(QString)), this, SLOT(configError(QString))); connect(config, SIGNAL(message(QString)), this, SLOT(configMessage(QString))); connect(config, SIGNAL(deviceDetailsChanged(DeviceDetails*)), @@ -275,7 +275,7 @@ void OstcFirmwareCheck::saveOstcFirmware(QNetworkReply *reply) file.open(QIODevice::WriteOnly); file.write(firmwareData); file.close(); - ConfigureDiveComputer *config = new ConfigureDiveComputer(MainWindow::instance()); + ConfigureDiveComputer *config = new ConfigureDiveComputer(); config->startFirmwareUpdate(storeFirmware, &devData); } -- cgit v1.2.3-70-g09d2