ComponentsHelper.getWindow() should return controller instance. #PL-2240

This commit is contained in:
Yuriy Artamonov 2013-10-22 07:13:15 +00:00
parent cf7a4f5b9d
commit 3dd77b291f

View File

@ -496,6 +496,9 @@ public class WebWindowManager extends WindowManager {
if (tabSheet == null)
return; // for SINGLE tabbing mode
if (window instanceof Window.Wrapper) {
window = ((Window.Wrapper) window).getWrappedWindow();
}
WindowOpenMode openMode = getWindowOpenMode().get(window);
if (openMode == null || OpenType.DIALOG.equals(openMode.getOpenType()))
return;