diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-06-12 23:56:14 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-06-12 23:56:14 -0700 |
| commit | c4879a0c2fea705b6ad7956502acc7897838e841 (patch) | |
| tree | fefa1f3ce6a8e2cbe05154059de352275de3c469 /src/qt/guiutil.cpp | |
| parent | Merge pull request #1445 from Diapolo/RPCCon_Button_noAutoDefault (diff) | |
| parent | Cross-platform "Open debug logfile" (diff) | |
| download | discoin-c4879a0c2fea705b6ad7956502acc7897838e841.tar.xz discoin-c4879a0c2fea705b6ad7956502acc7897838e841.zip | |
Merge pull request #1444 from laanwj/2012_06_opendebuglog
Cross-platform “Open debug logfile”
Diffstat (limited to 'src/qt/guiutil.cpp')
| -rw-r--r-- | src/qt/guiutil.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index e8df8ad7b..5dedc90d6 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -241,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) : |