git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
77eabaa
)
BUGFIX: prevent Qt client crash at startup with an empty directory
author
alex
<alex@alex-VirtualBox.(none)>
Mon, 29 Jul 2013 23:30:46 +0000 (
03:30
+0400)
committer
alex
<alex@alex-VirtualBox.(none)>
Mon, 29 Jul 2013 23:30:46 +0000 (
03:30
+0400)
src/qt/clientmodel.cpp
patch
|
blob
|
history
diff --git
a/src/qt/clientmodel.cpp
b/src/qt/clientmodel.cpp
index
b820d16
..
3b3af1e
100644
(file)
--- a/
src/qt/clientmodel.cpp
+++ b/
src/qt/clientmodel.cpp
@@
-50,7
+50,10
@@
int ClientModel::getNumBlocksAtStartup()
QDateTime ClientModel::getLastBlockDate() const
{
- return QDateTime::fromTime_t(pindexBest->GetBlockTime());
+ if (pindexBest)
+ return QDateTime::fromTime_t(pindexBest->GetBlockTime());
+ else
+ return QDateTime::fromTime_t(1360105017); // Genesis block's time
}
void ClientModel::updateTimer()