mount-operation: close the password entry on operation abort

If the device disappears in the middle of a mount operation, make sure
to dismiss the password prompt automatically.

https://bugzilla.gnome.org/show_bug.cgi?id=673787
This commit is contained in:
Cosimo Cecchi 2012-06-19 16:41:39 -04:00
parent 281b0a3e63
commit de73128d47

View File

@ -157,11 +157,19 @@ const ShellMountOperation = new Lang.Class({
},
_onAborted: function(op) {
if (!this._dialog)
if (!this._dialog && !this._source)
return;
this._dialog.close(global.get_current_time());
this._dialog = null;
if (this._dialog) {
this._dialog.close(global.get_current_time());
this._dialog = null;
}
if (this._source) {
this._notificationShowing = false;
this._source.destroy();
this._source = null;
}
},
_onShowProcesses2: function(op) {