Bug fix: Late crash when closing Creator while building debugging helper (QTCREATORBUG-1576).

Reviewed-by: hjk
This commit is contained in:
Leandro Melo
2010-06-08 13:55:50 +02:00
parent fa382022e0
commit 72c74b7d5a
3 changed files with 8 additions and 1 deletions

View File

@@ -113,6 +113,8 @@ QStringList DebuggingHelperLibrary::debuggingHelperLibraryLocationsByInstallData
QString DebuggingHelperLibrary::debuggingHelperLibraryByInstallData(const QString &qtInstallData)
{
if (!Core::ICore::instance())
return QString();
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