Skip to content

Commit

Permalink
Fixed deprecated API usage on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed May 16, 2018
1 parent add7756 commit 82b98df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tiled/winsparkleautoupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ QDateTime WinSparkleAutoUpdater::lastUpdateCheckDate()
if (lastUpdate == -1)
return QDateTime(); // never checked yet

#if QT_VERSION < 0x050800
return QDateTime::fromTime_t(lastUpdate);
#else
return QDateTime::fromSecsSinceEpoch(lastUpdate);
#endif
}

} // namespace Internal
Expand Down

0 comments on commit 82b98df

Please sign in to comment.