Skip to content

Commit

Permalink
qt: Use correct conversion function for boost::path datadir
Browse files Browse the repository at this point in the history
Fixes bitcoin#9089.

Github-Pull: bitcoin#9094
Rebased-From: e760b30
  • Loading branch information
laanwj authored and luke-jr committed Dec 2, 2016
1 parent 08d1c90 commit 5f3a12c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/qt/clientmodel.cpp
Expand Up @@ -6,6 +6,7 @@

#include "bantablemodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "peertablemodel.h"

#include "chainparams.h"
Expand Down Expand Up @@ -186,7 +187,7 @@ QString ClientModel::formatClientStartupTime() const

QString ClientModel::dataDir() const
{
return QString::fromStdString(GetDataDir().string());
return GUIUtil::boostPathToQString(GetDataDir());
}

void ClientModel::updateBanlist()
Expand Down
2 changes: 1 addition & 1 deletion src/qt/paymentserver.cpp
Expand Up @@ -80,7 +80,7 @@ static QString ipcServerName()
// Append a simple hash of the datadir
// Note that GetDataDir(true) returns a different path
// for -testnet versus main net
QString ddir(QString::fromStdString(GetDataDir(true).string()));
QString ddir(GUIUtil::boostPathToQString(GetDataDir(true)));
name.append(QString::number(qHash(ddir)));

return name;
Expand Down

0 comments on commit 5f3a12c

Please sign in to comment.