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

This can happen if the dialog gets reset at the wrong moment.

https://bugzilla.gnome.org/show_bug.cgi?id=693757
This commit is contained in:
Ray Strode 2013-02-06 14:36:37 -05:00
parent 7da186d4e9
commit 07c0105c83

View File

@ -1063,6 +1063,7 @@ const LoginDialog = new Lang.Class({
transition: 'linear', transition: 'linear',
onCompleteScope: this, onCompleteScope: this,
onComplete: function() { onComplete: function() {
if (this._workSpinner)
this._workSpinner.stop(); this._workSpinner.stop();
} }
}); });