summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/impl
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/view/impl')
-rw-r--r--src/jrummikub/view/impl/View.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java
index d04a136..fe2c1eb 100644
--- a/src/jrummikub/view/impl/View.java
+++ b/src/jrummikub/view/impl/View.java
@@ -6,6 +6,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
+import java.awt.event.ComponentListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
@@ -539,13 +540,15 @@ public class View extends JFrame implements IView {
}
public void showQuitWarningPanel(boolean show) {
- if (show) {
- setEnabled(true);
- }
quitWarningFrame.setLocationRelativeTo(this);
quitWarningFrame.setVisible(show);
- if (!show) {
- setEnabled(false);
+
+ if (System.getProperty("os.name").startsWith("Windows")) {
+ // disabling is broken under windows
+ layeredPane.setVisible(!show);
+ menuBar.setVisible(!show);
+ } else {
+ setEnabled(!show);
}
}