Browse Source

Prevent Qt crash at startup with an empty data directory

0.8
Gavin Andresen 12 years ago
parent
commit
85b534b23e
  1. 3
      src/qt/clientmodel.cpp

3
src/qt/clientmodel.cpp

@ -48,7 +48,10 @@ int ClientModel::getNumBlocksAtStartup() @@ -48,7 +48,10 @@ int ClientModel::getNumBlocksAtStartup()
QDateTime ClientModel::getLastBlockDate() const
{
if (pindexBest)
return QDateTime::fromTime_t(pindexBest->GetBlockTime());
else
return QDateTime::fromTime_t(1231006505); // Genesis block's time
}
void ClientModel::updateTimer()

Loading…
Cancel
Save