mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 08:34:34 +02:00
* Hook up openLogfile action to TomahawkWindow's slot.
This commit is contained in:
@@ -530,6 +530,7 @@ TomahawkWindow::setupSignals()
|
|||||||
connect( ac->getAction( "preferences" ), SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
|
connect( ac->getAction( "preferences" ), SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
|
||||||
connect( ac->getAction( "diagnostics" ), SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
|
connect( ac->getAction( "diagnostics" ), SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
|
||||||
connect( ac->getAction( "legalInfo" ), SIGNAL( triggered() ), SLOT( legalInfo() ) );
|
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( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
|
||||||
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
||||||
connect( ac->getAction( "loadXSPF" ), SIGNAL( triggered() ), SLOT( loadSpiff() ));
|
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
|
void
|
||||||
TomahawkWindow::updateCollectionManually()
|
TomahawkWindow::updateCollectionManually()
|
||||||
{
|
{
|
||||||
|
@@ -100,6 +100,7 @@ public slots:
|
|||||||
void showSettingsDialog();
|
void showSettingsDialog();
|
||||||
void showDiagnosticsDialog();
|
void showDiagnosticsDialog();
|
||||||
void legalInfo();
|
void legalInfo();
|
||||||
|
void openLogfile();
|
||||||
void updateCollectionManually();
|
void updateCollectionManually();
|
||||||
void rescanCollectionManually();
|
void rescanCollectionManually();
|
||||||
void showOfflineSources();
|
void showOfflineSources();
|
||||||
|
Reference in New Issue
Block a user