summaryrefslogtreecommitdiffstats
path: root/qt-ui/configuredivecomputerdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.cpp')
-rw-r--r--qt-ui/configuredivecomputerdialog.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}