1
0
forked from pool/libqt5-qtbase

Accepting request 320457 from KDE:Qt5

- Update QMimeDatabase-use-QElapsedTimer.patch to latest version

OBS-URL: https://build.opensuse.org/request/show/320457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=45
This commit is contained in:
Dominique Leuenberger 2015-08-06 22:19:29 +00:00 committed by Git OBS Bridge
parent c56a9d1b0f
commit 22413b57e6
2 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,7 @@ index cca9a40b9f28e1b45a6e5e0172f512c5880a10d6..9f6bdb30981f4f236ef422cfd16f6c1c
{ {
- const QDateTime now = QDateTime::currentDateTime(); - const QDateTime now = QDateTime::currentDateTime();
- if (m_lastCheck.isValid() && m_lastCheck.secsTo(now) < qmime_secondsBetweenChecks) - if (m_lastCheck.isValid() && m_lastCheck.secsTo(now) < qmime_secondsBetweenChecks)
+ if (m_lastCheck.isValid() && m_lastCheck.elapsed() < qmime_secondsBetweenChecks) + if (m_lastCheck.isValid() && m_lastCheck.elapsed() < qmime_secondsBetweenChecks * 1000)
return false; return false;
- m_lastCheck = now; - m_lastCheck = now;
+ m_lastCheck.start(); + m_lastCheck.start();

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 4 19:05:31 UTC 2015 - hrvoje.senjan@gmail.com
- Update QMimeDatabase-use-QElapsedTimer.patch to latest version
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 28 21:39:35 UTC 2015 - hrvoje.senjan@gmail.com Tue Jul 28 21:39:35 UTC 2015 - hrvoje.senjan@gmail.com