Make Hypnotoad disable-able.

This commit is contained in:
John Maguire 2010-07-12 19:58:47 +00:00
parent 3b1c1fa262
commit 6c18691755
1 changed files with 10 additions and 4 deletions

View File

@ -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();
}
} }