summaryrefslogtreecommitdiff
path: root/src/nsterm.m
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2014-10-05 20:03:42 +0200
committerJan Djärv <jan.h.d@swipnet.se>2014-10-05 20:03:42 +0200
commitd589d252238f18a1eeea0db545ebf43e3eaaa42f (patch)
tree4317ddb433933768f807ccd91df320ff53801c8c /src/nsterm.m
parent223ed51dc5e78444db5601397ff77ad2e36577bc (diff)
downloademacs-d589d252238f18a1eeea0db545ebf43e3eaaa42f.tar.gz
Fix disable toolbar for GNUStep.
* nsterm.m (updateFrameSize:): Only call update_frame_tool_bar if toolbar is visible. Fixes: debbugs:18345
Diffstat (limited to 'src/nsterm.m')
-rw-r--r--src/nsterm.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index ea8b4f726ff..b0a2994bcf5 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5827,7 +5827,8 @@ not_in_argv (NSString *arg)
{
#ifdef NS_IMPL_GNUSTEP
// GNUstep does not always update the tool bar height. Force it.
- if (toolbar) update_frame_tool_bar (emacsframe);
+ if (toolbar && [toolbar isVisible])
+ update_frame_tool_bar (emacsframe);
#endif
extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe)