source: src/app/application.cpp @ 6df32f2

Last change on this file since 6df32f2 was 6df32f2, checked in by gregor herrmann <gregoa@…>, 12 years ago

Update GPL blurb in source files.

  • Property mode set to 100644
File size: 1.3 KB
2 * Copyright (C) 2010 Ixonos Plc.
3 *
[6df32f2]4 * This file is part of ConfClerk.
[77e06ae]5 *
[6df32f2]6 * ConfClerk is free software: you can redistribute it and/or modify it
[77e06ae]7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation, either version 2 of the License, or (at your option)
9 * any later version.
10 *
[6df32f2]11 * ConfClerk is distributed in the hope that it will be useful, but
[77e06ae]12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
[6df32f2]17 * ConfClerk.  If not, see <>.
[77e06ae]18 */
19#include "application.h"
[3329d39]20#include "errormessage.h"
22#include <ormrecord.h>
24// if the application uses exceptions,
25// there is always a possibility that some will leak uncached from event handler
26// crashing the application is too big punishment for it
27bool Application::notify(QObject* receiver, QEvent* event)
29    try {
30        return QApplication::notify(receiver, event);
31    } catch (OrmException& e) {
[3329d39]32        error_message("UNCAUGHT OrmException: " + e.text());
[77e06ae]33        return false;
34    } catch (...) {
[3329d39]35        error_message("UNCAUGHT EXCEPTION: unknown");
[77e06ae]36        return false;
37    }
Note: See TracBrowser for help on using the repository browser.