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

* Hook up openLogfile action to TomahawkWindow's slot.

This commit is contained in:
Christian Muehlhaeuser 2013-01-04 11:47:48 +01:00
parent ef108b6a6f
commit 4505260061
2 changed files with 13 additions and 0 deletions

View File

@ -530,6 +530,7 @@ TomahawkWindow::setupSignals()
connect( ac->getAction( "preferences" ), SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
connect( ac->getAction( "diagnostics" ), SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
connect( ac->getAction( "legalInfo" ), SIGNAL( triggered() ), SLOT( legalInfo() ) );
connect( ac->getAction( "openLogfile" ), SIGNAL( triggered() ), SLOT( openLogfile() ) );
connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
connect( ac->getAction( "loadXSPF" ), SIGNAL( triggered() ), SLOT( loadSpiff() ));
@ -829,6 +830,17 @@ TomahawkWindow::legalInfo()
}
void
TomahawkWindow::openLogfile()
{
#ifdef WIN32
ShellExecuteW( 0, 0, (LPCWSTR)Logger::logfilePath().utf16(), 0, 0, SW_SHOWNORMAL );
#else
QDesktopServices::openUrl( QUrl::fromLocalFile( Logger::logFile() ) );
#endif
}
void
TomahawkWindow::updateCollectionManually()
{

View File

@ -100,6 +100,7 @@ public slots:
void showSettingsDialog();
void showDiagnosticsDialog();
void legalInfo();
void openLogfile();
void updateCollectionManually();
void rescanCollectionManually();
void showOfflineSources();