Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js	(revision 1365)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js	(revision 1366)
@@ -137,5 +137,5 @@
 
 			// Dummy URL for testing whether the code in fckdialog.js alone leaks memory.
-			// dialog.src = 'http://www.skype.com';
+			// dialog.src = 'about:blank';
 
 			dialog.frameBorder = 0 ;
@@ -171,12 +171,12 @@
 			FCKDomTools.RemoveNode( dialog ) ;
 
-			// Pop the dialog from the dialog stack, and disable dialog mode if the stack is empty.
-			if ( dialog._ParentDialog )
+			if ( dialog._ParentDialog )		// Nested Dialog.
 			{
 				topDialog = dialog._ParentDialog ;
 				dialog._ParentDialog.contentWindow.SetEnabled( true ) ;
 			}
-			else
-			{
+			else							// First Dialog.
+			{
+				FCK.Focus() ;
 				this.HideMainCover() ;
 				topDialog = null ;
