mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-01-31 10:30:52 +00:00
qt: fix qt4 compile error
f0f50cf9c introduced a compile error on qt4 because qHash only takes an int argument from qt5+. This fixes that by converting the seed into a string and both prepending and appending the seed to the datadir whenever compiling on qt4.
This commit is contained in:
parent
ad6a62b7ee
commit
d53b640c2d
@ -87,7 +87,12 @@ static QString ipcServerName()
|
||||
// Note that GetDataDir(true) returns a different path
|
||||
// for -testnet versus main net
|
||||
QString ddir(GUIUtil::boostPathToQString(GetDataDir(true)));
|
||||
#if QT_VERSION >= 0x050000
|
||||
name.append(QString::number(qHash(ddir, IPC_SOCKET_HASH)));
|
||||
#else
|
||||
QString rseed = QString::number(IPC_SOCKET_HASH);
|
||||
name.append(QString::number(qHash(rseed + ddir + rseed)));
|
||||
#endif //QT_VERSION >= 0x050000
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user