[gnome-games] ui: Handle errors from Runner.resume()
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Handle errors from Runner.resume()
- Date: Sun, 14 Aug 2016 13:21:28 +0000 (UTC)
commit ac53b25cc6bc5c45d5bc632ad2c7a1c6444c1291
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Aug 13 16:04:40 2016 +0200
ui: Handle errors from Runner.resume()
This avoids a compile time warning.
https://bugzilla.gnome.org/show_bug.cgi?id=769844
src/ui/application-window.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index fb8bbd7..52edf26 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -269,7 +269,12 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
private bool cancel_quitting_game () {
if (display_box.runner != null)
- display_box.runner.resume ();
+ try {
+ display_box.runner.resume ();
+ }
+ catch (Error e) {
+ warning (e.message);
+ }
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]