mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
* Fixed Windows compile.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user