mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
b5349478cf
The next commit will add `.git-blame-ignore-revs` https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
24 lines
461 B
C++
24 lines
461 B
C++
|
|
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
#include "termination.hh"
|
|
#include <exception>
|
|
#include <QtCore>
|
|
|
|
|
|
static void termHandler()
|
|
{
|
|
qDebug() << "GoldenDict has crashed unexpectedly.\n\n";
|
|
|
|
if ( logFilePtr && logFilePtr->isOpen() )
|
|
logFilePtr->close();
|
|
|
|
abort();
|
|
}
|
|
|
|
void installTerminationHandler()
|
|
{
|
|
std::set_terminate( termHandler );
|
|
}
|