aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r--src/qt/guiutil.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index 3f2fc2ffa1..5dedc90d69 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -36,6 +36,8 @@
#define NOMINMAX
#endif
#include "shlwapi.h"
+#include "shlobj.h"
+#include "shellapi.h"
#endif
namespace GUIUtil {
@@ -239,11 +241,9 @@ void openDebugLogfile()
{
boost::filesystem::path pathDebug = GetDataDir() / "debug.log";
-#ifdef WIN32
+ /* Open debug.log with the associated application */
if (boost::filesystem::exists(pathDebug))
- /* Open debug.log with the associated application */
- ShellExecuteA((HWND)0, (LPCSTR)"open", (LPCSTR)pathDebug.string().c_str(), NULL, NULL, SW_SHOWNORMAL);
-#endif
+ QDesktopServices::openUrl(QUrl::fromLocalFile(QString::fromStdString(pathDebug.string())));
}
ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent) :