Refs #807: Opening a new screen from modal screen

This commit is contained in:
Konstantin Devyatkin 2011-08-02 09:53:55 +00:00
parent e8c51bc5ae
commit 85fce318a1

View File

@ -29,6 +29,7 @@ import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.font.OpenType;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.*;
@ -125,7 +126,7 @@ public class DesktopWindowManager extends WindowManager {
@Override
protected void showWindow(Window window, String caption, String description, OpenType openType, boolean multipleOpen) {
boolean forciblyDialog = false;
if (hasModalWindow()) {
if (openType != OpenType.DIALOG && hasModalWindow()) {
openType = OpenType.DIALOG;
forciblyDialog = true;
}