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,7 +1063,8 @@ const LoginDialog = new Lang.Class({
transition: 'linear',
onCompleteScope: this,
onComplete: function() {
this._workSpinner.stop();
if (this._workSpinner)
this._workSpinner.stop();
}
});
}