aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2016-03-22 08:40:10 +0100
committerJonas Schnelli <[email protected]>2016-03-22 08:40:10 +0100
commit4856f1d6712cdb2eac8712e379fd1e351583d78f (patch)
tree34220f8420fc506bcbd57fa0e00621bbd9b24562 /src/qt/clientmodel.cpp
parentMerge #7542: Implement "feefilter" P2P message (diff)
downloaddiscoin-4856f1d6712cdb2eac8712e379fd1e351583d78f.tar.xz
discoin-4856f1d6712cdb2eac8712e379fd1e351583d78f.zip
[Qt] Debug window: replace "Build date" with "Datadir"
The build date does only makes sense for custom/self-compiled bitcoin-core versions because we are using static build-dates for our deterministic release builds. Having a quick option to get the current datadir is much more valuable for debug purposes.
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index d3edfedff..65637cd61 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -193,6 +193,11 @@ QString ClientModel::formatClientStartupTime() const
return QDateTime::fromTime_t(nClientStartupTime).toString();
}
+QString ClientModel::dataDir() const
+{
+ return QString::fromStdString(GetDataDir().string());
+}
+
void ClientModel::updateBanlist()
{
banTableModel->refresh();