diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-14 10:45:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-14 13:32:42 +0200 |
commit | 161a72d1bf35413b700bddaf88f1c8b2bc47139b (patch) | |
tree | 5cf5a4649f2529dc1778966848a266bf3ae8723a /desktop | |
parent | 27d9aa3eff7e26c21218bece0310705a0453553f (diff) |
add comments and log some exceptions
Change-Id: I8fab74e92a932fd284a63357e7a20f208af2d20d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100728
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 57f88713cba4..c3baa5392817 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -551,6 +551,7 @@ void Desktop::DeInit() } catch (const RuntimeException&) { // someone threw an exception during shutdown // this will leave some garbage behind... + TOOLS_WARN_EXCEPTION("desktop.app", "exception throwing during shutdown, will leave some garbage behind"); } } @@ -2295,7 +2296,8 @@ void Desktop::HandleAppEvent( const ApplicationEvent& rAppEvent ) } break; case ApplicationEvent::Type::ShowDialog: - // ignore all errors here. It's clicking a menu entry only ... + // This is only used on macOS, and only for About or Preferences. + // Ignore all errors here. It's clicking a menu entry only ... // The user will try it again, in case nothing happens .-) try { @@ -2319,7 +2321,9 @@ void Desktop::HandleAppEvent( const ApplicationEvent& rAppEvent ) } } catch(const css::uno::Exception&) - {} + { + TOOLS_WARN_EXCEPTION("desktop.app", "exception thrown by dialog"); + } break; case ApplicationEvent::Type::Unaccept: // try to remove corresponding acceptor |