1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

* Fixed Windows compile.

This commit is contained in:
Christian Muehlhaeuser 2013-01-04 12:12:21 +01:00
parent 4505260061
commit d6115d1b6d

View File

@ -84,6 +84,10 @@
#if defined ( WITH_QtSparkle )
#include <qtsparkle/Updater>
#endif
#include <windows.h>
#include <shellapi.h>
#ifndef THBN_CLICKED
#define THBN_CLICKED 0x1800
#endif
@ -834,7 +838,7 @@ void
TomahawkWindow::openLogfile()
{
#ifdef WIN32
ShellExecuteW( 0, 0, (LPCWSTR)Logger::logfilePath().utf16(), 0, 0, SW_SHOWNORMAL );
ShellExecuteW( 0, 0, (LPCWSTR)Logger::logFile().utf16(), 0, 0, SW_SHOWNORMAL );
#else
QDesktopServices::openUrl( QUrl::fromLocalFile( Logger::logFile() ) );
#endif