Export as movie crash

I was testing if the ffmpeg plugin was installed correctly, so I exported an empty project wich made Pencil crash, thus I added an if block for the number of frames to export, but i don’t know how to make a message box appear giving more information about the issue.

The code I added was in object.cpp line 565:

if(frameEnd - frameStart == 0){
qDebug() << “zero frames left!”;
return false;
}

How could I add a message box?

Hi, @augusto_elorza

You could easily pop a message box via QMessageBox::warning()

ex. QMessageBox::waring( this, “Title”, “the message…” );

don’t forget to #include<QMessageBox>

[ref] http://qt-project.org/doc/qt-5/qmessagebox.html