Disable core dumps and tracing on *nix.

But only when built in release mode.

Closes #4
This commit is contained in:
Felix Geyer 2012-10-13 11:05:50 +02:00
parent 807924c0bc
commit 169e6327ea
5 changed files with 66 additions and 0 deletions

View file

@ -17,12 +17,17 @@
#include <QtCore/QFile>
#include "core/Tools.h"
#include "crypto/Crypto.h"
#include "gui/Application.h"
#include "gui/MainWindow.h"
int main(int argc, char** argv)
{
#ifdef QT_NO_DEBUG
Tools::disableCoreDumps();
#endif
Application app(argc, argv);
// don't set applicationName or organizationName as that changes
// QDesktopServices::storageLocation()