mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-16 14:01:58 +02:00
* Initialize queue early in TomahawkWindow and don't store it as a member.
This commit is contained in:
parent
cc059ac141
commit
28342ba811
@ -115,6 +115,10 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
|
||||
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
||||
|
||||
new ViewManager( this );
|
||||
QueueView* queueView = new QueueView();
|
||||
ViewManager::instance()->setQueue( queueView );
|
||||
AudioEngine::instance()->setQueue( queueView->trackView()->proxyModel()->playlistInterface() );
|
||||
|
||||
m_audioControls = new AudioControls( this );
|
||||
|
||||
ui->setupUi( this );
|
||||
@ -431,10 +435,6 @@ TomahawkWindow::setupSideBar()
|
||||
m_jobsModel->setJobModel( sourceModel );
|
||||
jobsView->setModel( m_jobsModel );
|
||||
|
||||
m_queueView = new QueueView();
|
||||
ViewManager::instance()->setQueue( m_queueView );
|
||||
AudioEngine::instance()->setQueue( m_queueView->trackView()->proxyModel()->playlistInterface() );
|
||||
|
||||
m_sidebar->addWidget( m_sourcetree );
|
||||
m_sidebar->addWidget( jobsView );
|
||||
|
||||
|
@ -60,7 +60,6 @@ class MusicScanner;
|
||||
class AudioControls;
|
||||
class TomahawkTrayIcon;
|
||||
class PlaylistModel;
|
||||
class QueueView;
|
||||
class AnimatedSplitter;
|
||||
|
||||
class AccountsToolButton;
|
||||
@ -182,8 +181,6 @@ private:
|
||||
TomahawkTrayIcon* m_trayIcon;
|
||||
SourceTreeView* m_sourcetree;
|
||||
QPushButton* m_statusButton;
|
||||
QPushButton* m_queueButton;
|
||||
QueueView* m_queueView;
|
||||
AnimatedSplitter* m_sidebar;
|
||||
JobStatusSortModel* m_jobsModel;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user