From dc3f49bad7492aead58a572e85e4ed05922c73bf Mon Sep 17 00:00:00 2001 From: crowning- Date: Sun, 15 Feb 2015 14:31:51 +0100 Subject: [PATCH] Edit configuration file from within wallet --- src/qt/guiutil.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index a82b503de..5d8e489bd 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -374,6 +374,15 @@ void openDebugLogfile() QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathDebug))); } +void openConfigfile() +{ + boost::filesystem::path pathConfig = GetConfigFile(); + + /* Open darkcoin.conf with the associated application */ + if (boost::filesystem::exists(pathConfig)) + QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig))); +} + ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent) : QObject(parent), size_threshold(size_threshold) {