[gnome-shell/wip/background-rework: 2/13] loginDialog: don't try to stop work spinner if it's already gone



commit 4fc132e997fb5e3593ecf794048160d3087fee7a
Author: Ray Strode <rstrode redhat com>
Date:   Wed Feb 6 14:36:37 2013 -0500

    loginDialog: don't try to stop work spinner if it's already gone

 js/gdm/loginDialog.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index b24b259..26a8e91 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -1059,7 +1059,8 @@ const LoginDialog = new Lang.Class({
                                transition: 'linear',
                                onCompleteScope: this,
                                onComplete: function() {
-                                   this._workSpinner.stop();
+                                   if (this._workSpinner)
+                                       this._workSpinner.stop();
                                }
                              });
         }


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