mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
PolkitAgent: don't crash if there is no avatar
If we're asking for root's password, we don't show an avatar. Don't emit an exception in that case. https://bugzilla.gnome.org/show_bug.cgi?id=683707
This commit is contained in:
parent
7ebb5c6a10
commit
452ac297ab
1 changed files with 1 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ const AuthenticationDialog = new Lang.Class({
|
|||
},
|
||||
|
||||
_onUserChanged: function() {
|
||||
if (this._user.is_loaded) {
|
||||
if (this._user.is_loaded && this._userAvatar) {
|
||||
this._userAvatar.update();
|
||||
this._userAvatar.actor.show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue