Переглянути джерело

Merge branch 'error-log'

* error-log:
  QDateTime::msecsTo is not available in Qt 4.6.3
Jean-Christophe Fillion-Robin 14 роки тому
батько
коміт
d304fb85bf
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Libs/Core/ctkErrorLogModel.cpp

+ 1 - 1
Libs/Core/ctkErrorLogModel.cpp

@@ -259,7 +259,7 @@ void ctkErrorLogModel::addEntry(ctkErrorLogModel::LogLevel logLevel,
     QDateTime lastRowDateTime = QDateTime::fromString(lastRowTimeIndex.data().toString(), timeFormat);
 
     int groupingIntervalInMsecs = 1000;
-    bool withinGroupingInterval = lastRowDateTime.msecsTo(currentDateTime) <= groupingIntervalInMsecs;
+    bool withinGroupingInterval = lastRowDateTime.time().msecsTo(currentDateTime.time()) <= groupingIntervalInMsecs;
 
     groupEntry = logLevelMatched && originMatched && withinGroupingInterval;
     }