Better handle pushModal failing

Previously we'd leave the focus on the stack, etc.

https://bugzilla.gnome.org/show_bug.cgi?id=595382
This commit is contained in:
Colin Walters
2009-09-16 11:37:51 -04:00
committed by Owen W. Taylor
parent 2c0661d377
commit cee7106cb1
4 changed files with 20 additions and 11 deletions

View File

@ -186,10 +186,12 @@ RunDialog.prototype = {
if (this._isOpen) // Already shown
return;
if (!Main.pushModal(this._group))
return;
this._isOpen = true;
this._group.show();
Main.pushModal(this._group);
global.stage.set_key_focus(this._entry);
},