1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-04 13:17:34 +02: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 ) #if defined ( WITH_QtSparkle )
#include <qtsparkle/Updater> #include <qtsparkle/Updater>
#endif #endif
#include <windows.h>
#include <shellapi.h>
#ifndef THBN_CLICKED #ifndef THBN_CLICKED
#define THBN_CLICKED 0x1800 #define THBN_CLICKED 0x1800
#endif #endif
@@ -834,7 +838,7 @@ void
TomahawkWindow::openLogfile() TomahawkWindow::openLogfile()
{ {
#ifdef WIN32 #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 #else
QDesktopServices::openUrl( QUrl::fromLocalFile( Logger::logFile() ) ); QDesktopServices::openUrl( QUrl::fromLocalFile( Logger::logFile() ) );
#endif #endif