Commit eaec4113 authored by Benjamin Long's avatar Benjamin Long

No crash when a QScroolBar is not found during a playback

parent 55a47952
......@@ -137,6 +137,14 @@ void pqEventPlayer::playEvent(const QString& Object,
// If we can't find an object with the right name, we're done ...
QString messageError;
QObject* const object = pqObjectNaming::GetObject(Object, messageError);
if(!object && Object.contains(QString("QScrollBar")))
{
emit this->eventPlayed(Object, Command, Arguments);
Error = false;
return;
}
if(!object && Command != "comment")
{
emit this->errorMessage(messageError);
......
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