mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
* QueueView waits for the Pipeline to become ready.
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
#include "widgets/HeaderLabel.h"
|
#include "widgets/HeaderLabel.h"
|
||||||
#include "playlist/QueueProxyModel.h"
|
#include "playlist/QueueProxyModel.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
#include "Pipeline.h"
|
||||||
#include "PlaylistView.h"
|
#include "PlaylistView.h"
|
||||||
#include "Source.h"
|
#include "Source.h"
|
||||||
#include "TomahawkSettings.h"
|
#include "TomahawkSettings.h"
|
||||||
@@ -67,8 +68,15 @@ QueueView::QueueView( AnimatedSplitter* parent )
|
|||||||
// Set initial state
|
// Set initial state
|
||||||
onHidden( this, false );
|
onHidden( this, false );
|
||||||
|
|
||||||
|
if ( Pipeline::instance()->isRunning() )
|
||||||
|
{
|
||||||
restoreState();
|
restoreState();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
connect( Pipeline::instance(), SIGNAL( running() ), SLOT( restoreState() ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QueueView::~QueueView()
|
QueueView::~QueueView()
|
||||||
|
@@ -61,9 +61,10 @@ private slots:
|
|||||||
void updateLabel();
|
void updateLabel();
|
||||||
void onAnimationFinished();
|
void onAnimationFinished();
|
||||||
|
|
||||||
|
void restoreState();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void saveState();
|
void saveState();
|
||||||
void restoreState();
|
|
||||||
|
|
||||||
Ui::QueueView* ui;
|
Ui::QueueView* ui;
|
||||||
QTimer* m_dragTimer;
|
QTimer* m_dragTimer;
|
||||||
|
Reference in New Issue
Block a user