[gnome-characters] util: Actually import the system module



commit a998e709c1d05bbce7ead7eb75c4bac08ccbb129
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Nov 14 15:54:27 2014 +0100

    util: Actually import the system module
    
    System.exit() is used without actually importing the system module,
    so we throw an exception and hang instead of aborting the program.

 src/util.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/util.js b/src/util.js
index 3c53eca..72dbcad 100644
--- a/src/util.js
+++ b/src/util.js
@@ -30,6 +30,7 @@ const GObject = imports.gi.GObject;
 const Gtk = imports.gi.Gtk;
 const Lang = imports.lang;
 const Params = imports.params;
+const System = imports.system;
 
 function loadUI(resourcePath, objects) {
     let ui = new Gtk.Builder();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]