m_actions["pause"]->setDisabled(true);
m_actions["stop"]->setDisabled(true);
- playlist->next();
-
break;
case Phonon::PlayingState:
m_actions["play"]->setDisabled(true);
if (!isFullScreen())
resizeToVideo();
#endif
- if (!m_marked)
+ if (addCommand)
addCommand->deleteLater();
addCommand = new MylistAddCommand(m_currentFile, this);
break;
case Phonon::PlayingState:
if (newstate == Phonon::PausedState && mediaObject->remainingTime() == 0)
- mediaObject->stop();
+ {
+ playlist->next();
+ }
default:
break;
}
void VideoWindow::markWatched()
{
- if (m_marked)
+ if (!addCommand)
{
menu->showMessage("File already Marked");
return;
}
menu->showMessage("Hashing file");
- m_marked = true;
connect(addCommand, SIGNAL(hashComplete()), this, SLOT(doMarkWatched()));
addCommand->setMarkWatched(true);
qDebug() << "hashing file...";