From 9f2940297f961599cd6c6e0061d792e92f6fe0eb Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Thu, 12 Nov 2009 17:34:41 +0100 Subject: [PATCH] Pretend that the gdbmacros.cpp is actually 5 minutes older then it is. Fixes a bug that after package installation the debugging helpers are sometimes marked as invalid. Reviewed-By: hjk --- src/plugins/projectexplorer/debugginghelper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/projectexplorer/debugginghelper.cpp b/src/plugins/projectexplorer/debugginghelper.cpp index 61c5b4538d1..460f90be30e 100644 --- a/src/plugins/projectexplorer/debugginghelper.cpp +++ b/src/plugins/projectexplorer/debugginghelper.cpp @@ -103,6 +103,10 @@ QString DebuggingHelperLibrary::debuggingHelperLibraryByInstallData(const QStrin { const QString dumperSourcePath = Core::ICore::instance()->resourcePath() + QLatin1String("/gdbmacros/"); QDateTime lastModified = QFileInfo(dumperSourcePath + "gdbmacros.cpp").lastModified(); + // We pretend that the lastmodified of gdbmacros.cpp is 5 minutes before what the file system says + // Because afer a installation from the package the modified dates of gdbmacros.cpp + // and the actual library are close to each other, but not deterministic in one direction + lastModified = lastModified.addSecs(-300); foreach(const QString &directory, debuggingHelperLibraryDirectories(qtInstallData)) { const QFileInfo fi(helperFilePath(directory)); -- GitLab