mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
qt: Use correct conversion function for boost::path datadir
Fixes #9089.
This commit is contained in:
parent
5fa7b07565
commit
e760b307f6
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include "bantablemodel.h"
|
#include "bantablemodel.h"
|
||||||
#include "guiconstants.h"
|
#include "guiconstants.h"
|
||||||
|
#include "guiutil.h"
|
||||||
#include "peertablemodel.h"
|
#include "peertablemodel.h"
|
||||||
|
|
||||||
#include "chainparams.h"
|
#include "chainparams.h"
|
||||||
@ -208,7 +209,7 @@ QString ClientModel::formatClientStartupTime() const
|
|||||||
|
|
||||||
QString ClientModel::dataDir() const
|
QString ClientModel::dataDir() const
|
||||||
{
|
{
|
||||||
return QString::fromStdString(GetDataDir().string());
|
return GUIUtil::boostPathToQString(GetDataDir());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientModel::updateBanlist()
|
void ClientModel::updateBanlist()
|
||||||
|
@ -80,7 +80,7 @@ static QString ipcServerName()
|
|||||||
// Append a simple hash of the datadir
|
// Append a simple hash of the datadir
|
||||||
// Note that GetDataDir(true) returns a different path
|
// Note that GetDataDir(true) returns a different path
|
||||||
// for -testnet versus main net
|
// for -testnet versus main net
|
||||||
QString ddir(QString::fromStdString(GetDataDir(true).string()));
|
QString ddir(GUIUtil::boostPathToQString(GetDataDir(true)));
|
||||||
name.append(QString::number(qHash(ddir)));
|
name.append(QString::number(qHash(ddir)));
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user