Create action before accesing it!

BUG: 470
This commit is contained in:
craig.p.drummond@gmail.com
2014-04-25 11:34:15 +00:00
committed by craig.p.drummond@gmail.com
parent caa9942c8d
commit d8e62af143

View File

@@ -295,11 +295,11 @@ PlayQueueView::PlayQueueView(QWidget *parent)
, backgroundOpacity(15)
, backgroundBlur(0)
{
removeFromAction = ActionCollection::get()->createAction("removefromplaylist", i18n("Remove From Play Queue"), "list-remove");
setMode(ItemView::Mode_GroupedTree);
animator.setPropertyName("fade");
animator.setTargetObject(this);
connect(CurrentCover::self(), SIGNAL(coverImage(QImage)), this, SLOT(setImage(QImage)));
removeFromAction = ActionCollection::get()->createAction("removefromplaylist", i18n("Remove From Play Queue"), "list-remove");
}
PlayQueueView::~PlayQueueView()