meshlab/src/common/mlapplication.cpp
2016-06-04 16:22:37 +00:00

26 lines
477 B
C++

#include "mlapplication.h"
#include "mlexception.h"
#include <vcg/complex/complex.h>
bool MeshLabApplication::notify( QObject * rec, QEvent * ev )
{
try
{
return QApplication::notify(rec,ev);
}
catch (MLException& e)
{
qCritical("%s",e.what());
}
catch (vcg::MissingComponentException &e )
{
qCritical("%s",e.what());
abort();
}
catch (...)
{
qCritical("Something really bad happened!!!!!!!!!!!!!");
abort();
}
return false;
}