Skip to content

Commit

Permalink
Returning the focus to the previously focused widget put into try/cat…
Browse files Browse the repository at this point in the history
…ch to avoid to break the app when the previous widget doesn't correctly focus.

git-svn-id: https://qooxdoo-contrib.svn.sourceforge.net/svnroot/qooxdoo-contrib@20543 09f7d036-9b2a-0410-8fbe-9cff4eb17569
  • Loading branch information
cboulanger committed Jul 15, 2010
1 parent 885ff81 commit d9fc558
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/class/dialog/Dialog.js
Expand Up @@ -472,7 +472,11 @@ qx.Class.define("dialog.Dialog",
}
if ( this.__previousFocus )
{
this.__previousFocus.focus();
try
{
this.__previousFocus.focus();
}
catch( e ){}
}
this.fireEvent("hide");
},
Expand Down

0 comments on commit d9fc558

Please sign in to comment.