diff --git a/src/libtomahawk/ActionCollection.cpp b/src/libtomahawk/ActionCollection.cpp index 0afbb64d8..667df4880 100644 --- a/src/libtomahawk/ActionCollection.cpp +++ b/src/libtomahawk/ActionCollection.cpp @@ -143,6 +143,8 @@ ActionCollection::initActions() m_actionCollection[ "crashNow" ] = new QAction( "Crash now...", this ); m_actionCollection[ "whatsnew_0_8" ] = new QAction( tr( "0.8" ) , this ); m_actionCollection[ "whatsnew_0_8" ]->setMenuRole( QAction::ApplicationSpecificRole ); + m_actionCollection[ "reportBug" ] = new QAction( tr( "Report a Bug" ) , this ); + m_actionCollection[ "getSupport" ] = new QAction( tr( "Get Suport" ) , this ); } @@ -179,6 +181,9 @@ ActionCollection::createMenuBar( QWidget *parent ) helpMenu->addAction( m_actionCollection[ "diagnostics" ] ); helpMenu->addAction( m_actionCollection[ "openLogfile" ] ); helpMenu->addAction( m_actionCollection[ "legalInfo" ] ); + helpMenu->addAction( m_actionCollection["getSupport"] ); + helpMenu->addAction( m_actionCollection["reportBug"] ); + helpMenu->addSeparator(); QMenu* whatsNew = helpMenu->addMenu( ImageRegistry::instance()->icon( RESPATH "images/whatsnew.svg" ), tr( "What's new in ..." ) ); whatsNew->setFont( TomahawkUtils::systemFont() ); whatsNew->addAction( m_actionCollection[ "whatsnew_0_8" ] ); @@ -270,6 +275,9 @@ ActionCollection::createCompactMenu( QWidget *parent ) compactMenu->addAction( m_actionCollection[ "crashNow" ] ); } compactMenu->addSeparator(); + compactMenu->addAction( m_actionCollection["getSupport"] ); + compactMenu->addAction( m_actionCollection["reportBug"] ); + compactMenu->addSeparator(); compactMenu->addAction( m_actionCollection[ "quit" ] ); return compactMenu; diff --git a/src/tomahawk/TomahawkWindow.cpp b/src/tomahawk/TomahawkWindow.cpp index 20ac34018..7eeefdc53 100644 --- a/src/tomahawk/TomahawkWindow.cpp +++ b/src/tomahawk/TomahawkWindow.cpp @@ -654,6 +654,8 @@ 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( "reportBug" ), SIGNAL( triggered() ), SLOT( reportBug() ) ); + connect( ac->getAction( "getSupport" ), SIGNAL( triggered() ), SLOT( getSupport() ) ); connect( ac->getAction( "openLogfile" ), SIGNAL( triggered() ), SLOT( openLogfile() ) ); connect( ac->getAction( "updateCollection" ), SIGNAL( triggered() ), SLOT( updateCollectionManually() ) ); connect( ac->getAction( "rescanCollection" ), SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) ); @@ -1018,6 +1020,17 @@ TomahawkWindow::legalInfo() QDesktopServices::openUrl( QUrl( "http://www.tomahawk-player.org/legal.html" ) ); } +void +TomahawkWindow::getSupport() +{ + QDesktopServices::openUrl( QUrl( "http://tomahawk.uservoice.com" ) ); +} + +void +TomahawkWindow::reportBug() +{ + QDesktopServices::openUrl( QUrl( "http://bugs.tomahawk-player.org" ) ); +} void TomahawkWindow::openLogfile() diff --git a/src/tomahawk/TomahawkWindow.h b/src/tomahawk/TomahawkWindow.h index 2136d73c1..006a7f663 100644 --- a/src/tomahawk/TomahawkWindow.h +++ b/src/tomahawk/TomahawkWindow.h @@ -101,6 +101,8 @@ public slots: void showSettingsDialog(); void showDiagnosticsDialog(); void legalInfo(); + void getSupport(); + void reportBug(); void openLogfile(); void updateCollectionManually(); void rescanCollectionManually();