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:
parent
ef108b6a6f
commit
4505260061
@ -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()
|
||||
{
|
||||
|
@ -100,6 +100,7 @@ public slots:
|
||||
void showSettingsDialog();
|
||||
void showDiagnosticsDialog();
|
||||
void legalInfo();
|
||||
void openLogfile();
|
||||
void updateCollectionManually();
|
||||
void rescanCollectionManually();
|
||||
void showOfflineSources();
|
||||
|
Loading…
x
Reference in New Issue
Block a user