# HG changeset patch # User Michael Pigg # Date 1251318847 14400 # Node ID d90b2a173bcfc52f5d7e9072ca46365a984594cc # Parent 12b9bfff93494a92a893b20152f2f704f2bdf6ef imported patch 170288.diff diff --git a/editor/src/org/netbeans/modules/editor/impl/StatusLineFactories.java b/editor/src/org/netbeans/modules/editor/impl/StatusLineFactories.java --- a/editor/src/org/netbeans/modules/editor/impl/StatusLineFactories.java +++ b/editor/src/org/netbeans/modules/editor/impl/StatusLineFactories.java @@ -129,7 +129,8 @@ if (editorUI != null) { StatusBar statusBar = editorUI.getStatusBar(); statusBar.setVisible(!underMainWindow); - if (underMainWindow) { + boolean shouldUpdateGlobal = underMainWindow && component.isShowing(); + if (shouldUpdateGlobal) { statusBar.updateGlobal(); LOG.fine(" end of refreshStatusLine() - found main window component\n\n"); // NOI18N return; // First non-docked one found and updated -> quit