Skip to content

Commit

Permalink
Merge branch 'scribblemaniac-quickfix-norepeat'. Closes #57.
Browse files Browse the repository at this point in the history
  • Loading branch information
dalboris committed Feb 11, 2016
2 parents 735b11b + 6b0faf3 commit cd01138
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
16 changes: 4 additions & 12 deletions src/Gui/UpdateCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ UpdateCheck::UpdateCheck(QWidget * parent) :
{
// Initialize variables
versionToCheck_ = global()->settings().checkVersion();
networkManager_ = new QNetworkAccessManager();
parent_ = parent;

checkForUpdates();
}

UpdateCheck::UpdateCheck(Version configVersion, QWidget * parent) :
reply_(0),
isReady_(false)
{
// Initialize variables
versionToCheck_ = configVersion;
if(versionToCheck_ < Version(qApp->applicationVersion()) && versionToCheck_ != Version()) {
global()->settings().setCheckVersion(Version(qApp->applicationVersion()));
versionToCheck_ = global()->settings().checkVersion();
}
networkManager_ = new QNetworkAccessManager();
parent_ = parent;

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
2 changes: 1 addition & 1 deletion src/Gui/VectorAnimationComplex/BoundingBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inline bool isnan_(double x)
#ifdef WIN32
return x != x;
#else
return std::isnan(res);
return std::isnan(x);
#endif
}

Expand Down

0 comments on commit cd01138

Please sign in to comment.