summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-11 10:21:04 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-11 10:21:04 -0300
commit1b9a4f2bf8e9de9144133a435f3470fd77975945 (patch)
tree74aa1d0972296d3d7f7b327fbabd523d91cb8aeb /qt-ui/downloadfromdivecomputer.cpp
parent9ed933d033889ac841c5f38afcdd40fa588a8cb9 (diff)
downloadsubsurface-1b9a4f2bf8e9de9144133a435f3470fd77975945.tar.gz
Good deal of whitespace fixes and code cleanup.
I just went thru all of subsurface code removing some whitespaces issues and trying to make the code prettyer, I also removed a few QString issues.d Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index a481b56c1..72ba7933d 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -68,14 +68,12 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) :
timer->setInterval(200);
connect(timer, SIGNAL(timeout()), this, SLOT(updateProgressBar()));
-
updateState(INITIAL);
}
void DownloadFromDCWidget::runDialog()
{
updateState(INITIAL);
-
exec();
}
@@ -324,13 +322,10 @@ static QString str_error(const char *fmt, ...)
void DownloadThread::run()
{
const char *error;
-
if (!strcmp(data->vendor, "Uemis"))
error = do_uemis_import(data->devname, data->force_download);
else
error = do_libdivecomputer_import(data);
-
- if (error) {
+ if (error)
this->error = str_error(error, data->devname, data->vendor, data->product);
- }
}