Skip to content

Commit

Permalink
Cleaned UpdateCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dalboris committed Feb 11, 2016
1 parent 9bfa38e commit 6b0faf3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions src/Gui/UpdateCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ UpdateCheck::UpdateCheck(QWidget * parent) :
checkForUpdates();
}

UpdateCheck::UpdateCheck(Version configVersion, QWidget * parent) :
reply_(0),
isReady_(false)
{
// Initialize variables
versionToCheck_ = configVersion;
networkManager_ = new QNetworkAccessManager();
parent_ = parent;

checkForUpdates();
}

UpdateCheck::~UpdateCheck()
{
delete networkManager_;
Expand Down Expand Up @@ -101,7 +89,6 @@ void UpdateCheck::requestFinished_()
// Compare versions
if(versionToCheck_ < latestVersion_)
{
qDebug() << versionToCheck_.toString() << " - " << latestVersion_.toString();
// Create dialog with latest version
dialog_ = new UpdateCheckDialog(latestVersion_.toString(), parent_, Qt::Dialog);
dialog_->setAttribute(Qt::WA_DeleteOnClose);
Expand Down
1 change: 0 additions & 1 deletion src/Gui/UpdateCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class UpdateCheck: public QObject

public:
UpdateCheck(QWidget * parent = 0);
UpdateCheck(Version configVersion, QWidget * parent = 0);
virtual ~UpdateCheck();

Version versionChecked() const;
Expand Down

0 comments on commit 6b0faf3

Please sign in to comment.