Permalink
Browse files

Returning the focus to the previously focused widget put into try/cat…

…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...
1 parent 885ff81 commit d9fc55828c9371a9d3779be75b6bc41194af19ed cboulanger committed Jul 15, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 source/class/dialog/Dialog.js
@@ -472,7 +472,11 @@ qx.Class.define("dialog.Dialog",
}
if ( this.__previousFocus )
{
- this.__previousFocus.focus();
+ try
+ {
+ this.__previousFocus.focus();
+ }
+ catch( e ){}
}
this.fireEvent("hide");
},

0 comments on commit d9fc558

Please sign in to comment.