diff --git a/src/gui/main.cpp b/src/gui/main.cpp index ec4a347eb..ef5747974 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -39,6 +39,7 @@ #include #include #include +#include using namespace OCC; @@ -113,6 +114,10 @@ int main(int argc, char **argv) } #endif + auto surfaceFormat = QSurfaceFormat::defaultFormat(); + surfaceFormat.setOption(QSurfaceFormat::ResetNotification); + QSurfaceFormat::setDefaultFormat(surfaceFormat); + // check a environment variable for core dumps #ifdef Q_OS_UNIX if (!qEnvironmentVariableIsEmpty("OWNCLOUD_CORE_DUMP")) {