Browse Source

Merge #9094: qt: Use correct conversion function for boost::path datadir

e760b30 qt: Use correct conversion function for boost::path datadir (Wladimir J. van der Laan)
0.14
Jonas Schnelli 8 years ago
parent
commit
78cdd643d3
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 3
      src/qt/clientmodel.cpp
  2. 2
      src/qt/paymentserver.cpp

3
src/qt/clientmodel.cpp

@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
#include "bantablemodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "peertablemodel.h"
#include "chainparams.h"
@ -208,7 +209,7 @@ QString ClientModel::formatClientStartupTime() const @@ -208,7 +209,7 @@ QString ClientModel::formatClientStartupTime() const
QString ClientModel::dataDir() const
{
return QString::fromStdString(GetDataDir().string());
return GUIUtil::boostPathToQString(GetDataDir());
}
void ClientModel::updateBanlist()

2
src/qt/paymentserver.cpp

@ -80,7 +80,7 @@ static QString ipcServerName() @@ -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;

Loading…
Cancel
Save