Commit 462eca8f authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(update_tool_bar): Redisplay toolbar also when only

number of items changes.
parent 6b4d8762
...@@ -9391,7 +9391,8 @@ update_tool_bar (f, save_match_data) ...@@ -9391,7 +9391,8 @@ update_tool_bar (f, save_match_data)
&new_n_tool_bar); &new_n_tool_bar);
   
/* Redisplay the tool-bar if we changed it. */ /* Redisplay the tool-bar if we changed it. */
if (NILP (Fequal (new_tool_bar, f->tool_bar_items))) if (new_n_tool_bar != f->n_tool_bar_items
|| NILP (Fequal (new_tool_bar, f->tool_bar_items)))
{ {
/* Redisplay that happens asynchronously due to an expose event /* Redisplay that happens asynchronously due to an expose event
may access f->tool_bar_items. Make sure we update both may access f->tool_bar_items. Make sure we update both
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment