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