mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Trigger showing our default ViewPage (dashboard) from the SourceTreeView. Just as ugly as from the SourcesModel.
This commit is contained in:
@@ -45,6 +45,8 @@
|
||||
#include "widgets/SourceTreePopupDialog.h"
|
||||
#include "PlaylistEntry.h"
|
||||
|
||||
#include "../../viewpages/dashboard/Dashboard.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
@@ -149,6 +151,8 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
||||
renamePlaylistAction->setShortcut( Qt::Key_F2 );
|
||||
addAction( renamePlaylistAction );
|
||||
connect( renamePlaylistAction, SIGNAL( triggered() ), SLOT( renamePlaylist() ) );
|
||||
|
||||
ViewManager::instance()->showDynamicPage( Tomahawk::Widgets::DASHBOARD_VIEWPAGE_NAME );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user