Clear message queue if important error message is displayed so that queued...

Clear message queue if important error message is displayed so that queued message don't appear afterwards out of context
parent db7334c0
......@@ -219,7 +219,7 @@ KdenliveDoc::KdenliveDoc(const QUrl &url, const QString &projectFolder, QUndoGro
}
if (success) { // Let the validator handle error messages
qCDebug(KDENLIVE_LOG) << " // / processing file validate ok";
parent->slotGotProgressInfo(i18n("Check missing clips"), 100);
pCore->displayMessage(i18n("Check missing clips"), InformationMessage, 500);
qApp->processEvents();
DocumentChecker d(m_url, m_document);
success = !d.hasErrorInClips();
......
......@@ -136,6 +136,9 @@ void StatusBarMessageLabel::setMessage(const QString &text, MessageType type, in
}
}
m_messageQueue = cleanList;
} else {
// Important error message, delete previous queue so they don't appear afterwards out of context
m_messageQueue.clear();
}
m_messageQueue.push_front(item);
......
......@@ -381,7 +381,6 @@ bool ClipModel::useTimewarpProducer(double speed, Fun &undo, Fun &redo)
{
if (m_endlessResize) {
// no timewarp for endless producers
qDebug()<<"* ** * ERROR ON RESIZE LIMIT";
return false;
}
if (qFuzzyCompare(speed, m_speed)) {
......@@ -411,7 +410,6 @@ bool ClipModel::useTimewarpProducer(double speed, Fun &undo, Fun &redo)
UPDATE_UNDO_REDO(operation, reverse, local_undo, local_redo);
bool res = requestResize(newDuration, true, local_undo, local_redo, true);
if (!res) {
qDebug()<<"* ** * ERROR ON RESIZE 1";
local_undo();
return false;
}
......
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