Make Hypnotoad disable-able.
This commit is contained in:
parent
3b1c1fa262
commit
6c18691755
|
@ -337,8 +337,14 @@ bool NowPlayingWidget::show_above_status_bar() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NowPlayingWidget::AllHail(bool hypnotoad) {
|
void NowPlayingWidget::AllHail(bool hypnotoad) {
|
||||||
|
if (hypnotoad) {
|
||||||
hypnotoad_ = new QMovie(kHypnotoadPath, QByteArray(), this);
|
hypnotoad_ = new QMovie(kHypnotoadPath, QByteArray(), this);
|
||||||
connect(hypnotoad_, SIGNAL(updated(const QRect&)), SLOT(repaint()));
|
connect(hypnotoad_, SIGNAL(updated(const QRect&)), SLOT(repaint()));
|
||||||
hypnotoad_->start();
|
hypnotoad_->start();
|
||||||
update();
|
update();
|
||||||
|
} else {
|
||||||
|
delete hypnotoad_;
|
||||||
|
hypnotoad_ = NULL;
|
||||||
|
update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue