1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-10-05 10:03:43 +02:00

Add link to legal page in Help menu. Note: will work properly when stage

is pushed to main, as .html differs
This commit is contained in:
Jeff Mitchell
2012-06-18 20:27:55 -04:00
parent 8f7a6de801
commit f2989dd4d9
3 changed files with 21 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
#include <QAction>
#include <QCloseEvent>
#include <QDesktopServices>
#include <QShowEvent>
#include <QHideEvent>
#include <QInputDialog>
@@ -341,6 +342,7 @@ TomahawkWindow::setupSignals()
// connect( ui->actionAddPeerManually, SIGNAL( triggered() ), SLOT( addPeerManually() ) );
connect( ui->actionPreferences, SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
connect( ui->actionDiagnostics, SIGNAL( triggered() ), SLOT( showDiagnosticsDialog() ) );
connect( ui->actionLegalInfo, SIGNAL( triggered() ), SLOT( legalInfo() ) );
connect( ui->actionToggleConnect, SIGNAL( triggered() ), AccountManager::instance(), SLOT( toggleAccountsConnected() ) );
connect( ui->actionUpdateCollection, SIGNAL( triggered() ), SLOT( updateCollectionManually() ) );
connect( ui->actionRescanCollection, SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
@@ -512,13 +514,21 @@ TomahawkWindow::showSettingsDialog()
}
void TomahawkWindow::showDiagnosticsDialog()
void
TomahawkWindow::showDiagnosticsDialog()
{
DiagnosticsDialog win;
win.exec();
}
void
TomahawkWindow::legalInfo()
{
QDesktopServices::openUrl( QUrl( "http://www.tomahawk-player.org/legal.html" ) );
}
void
TomahawkWindow::updateCollectionManually()
{