1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Change OpenCV error mode

Should help with #1240
This commit is contained in:
tux3 2015-03-06 00:35:22 +01:00
parent dd3087fc3d
commit 68afc8f623

View File

@ -30,7 +30,7 @@
#include <QFontDatabase> #include <QFontDatabase>
#include <QMutexLocker> #include <QMutexLocker>
#include <QProcess> #include <QProcess>
#include <opencv2/core/core.hpp> #include <opencv2/core/core_c.h>
#include <sodium.h> #include <sodium.h>
@ -138,7 +138,8 @@ int main(int argc, char *argv[])
qDebug() << "built on: " << __TIME__ << __DATE__ << "(" << TIMESTAMP << ")"; qDebug() << "built on: " << __TIME__ << __DATE__ << "(" << TIMESTAMP << ")";
qDebug() << "commit: " << GIT_VERSION << "\n"; qDebug() << "commit: " << GIT_VERSION << "\n";
cv::redirectError(opencvErrorHandler); cvSetErrMode(CV_ErrModeParent);
cvRedirectError(opencvErrorHandler);
#ifdef Q_OS_MACX #ifdef Q_OS_MACX
if (qApp->applicationDirPath() != "/Applications/qtox.app/Contents/MacOS") { if (qApp->applicationDirPath() != "/Applications/qtox.app/Contents/MacOS") {