Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Don't try to play invalid zone, inform user. Fixes #67

parent a874e9ee
......@@ -1812,7 +1812,8 @@ void GLWidget::switchPlay(bool play, double speed)
bool GLWidget::playZone(bool loop)
{
if (!m_producer) {
if (!m_producer || m_proxy->zoneOut() <= m_proxy->zoneIn()) {
pCore->displayMessage(i18n("Select a zone to play"), InformationMessage, 500);
return false;
}
m_proxy->setSeekPosition(-1);
......@@ -1832,7 +1833,8 @@ bool GLWidget::playZone(bool loop)
bool GLWidget::loopClip()
{
if (!m_producer) {
if (!m_producer || m_proxy->zoneOut() <= m_proxy->zoneIn()) {
pCore->displayMessage(i18n("Select a zone to play"), InformationMessage, 500);
return false;
}
m_proxy->setSeekPosition(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment