diff options
-rw-r--r-- | configuredivecomputer.cpp | 3 | ||||
-rw-r--r-- | configuredivecomputer.h | 2 | ||||
-rw-r--r-- | qt-ui/configuredivecomputerdialog.cpp | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index 769189b26..3364d92be 100644 --- a/configuredivecomputer.cpp +++ b/configuredivecomputer.cpp @@ -9,8 +9,7 @@ #include <QStringList> #include <QXmlStreamWriter> -ConfigureDiveComputer::ConfigureDiveComputer(QObject *parent) : - QObject(parent), +ConfigureDiveComputer::ConfigureDiveComputer() : readThread(0), writeThread(0), resetThread(0), diff --git a/configuredivecomputer.h b/configuredivecomputer.h index 59340335d..66a9bf5f5 100644 --- a/configuredivecomputer.h +++ b/configuredivecomputer.h @@ -14,7 +14,7 @@ class ConfigureDiveComputer : public QObject { Q_OBJECT public: - explicit ConfigureDiveComputer(QObject *parent = 0); + explicit ConfigureDiveComputer(); void readSettings(device_data_t *data); enum states { 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); } |