diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index b2cf4b639..183444efa 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -177,6 +177,11 @@ QString ClientModel::dataDir() const return GUIUtil::boostPathToQString(GetDataDir()); } +QString ClientModel::blocksDir() const +{ + return GUIUtil::boostPathToQString(GetBlocksDir()); +} + void ClientModel::updateBanlist() { banTableModel->refresh(); diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index ed7ecbf73..79e7074cc 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -69,6 +69,7 @@ public: bool isReleaseVersion() const; QString formatClientStartupTime() const; QString dataDir() const; + QString blocksDir() const; bool getProxyInfo(std::string& ip_port) const; diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index 695ed6122..322a84ee9 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -142,13 +142,39 @@ + + + Blocksdir + + + + + + + IBeamCursor + + + N/A + + + Qt::PlainText + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + + + + Startup time - + IBeamCursor @@ -164,7 +190,7 @@ - + @@ -177,14 +203,14 @@ - + Name - + IBeamCursor @@ -200,14 +226,14 @@ - + Number of connections - + IBeamCursor @@ -223,7 +249,7 @@ - + @@ -236,14 +262,14 @@ - + Current number of blocks - + IBeamCursor @@ -259,14 +285,14 @@ - + Last block time - + IBeamCursor @@ -282,7 +308,7 @@ - + @@ -295,14 +321,14 @@ - + Current number of transactions - + IBeamCursor @@ -318,14 +344,14 @@ - + Memory usage - + IBeamCursor @@ -341,7 +367,7 @@ - + 3 @@ -381,7 +407,7 @@ - + Qt::Vertical diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 3857befdf..5bf989314 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -661,6 +661,7 @@ void RPCConsole::setClientModel(ClientModel *model) ui->clientVersion->setText(model->formatFullVersion()); ui->clientUserAgent->setText(model->formatSubVersion()); ui->dataDir->setText(model->dataDir()); + ui->blocksDir->setText(model->blocksDir()); ui->startupTime->setText(model->formatClientStartupTime()); ui->networkName->setText(QString::fromStdString(Params().NetworkIDString()));