# Reload button bug in later nightlies

**URL:** <https://discourse.slicer.org/t/reload-button-bug-in-later-nightlies/8625>\
**Category:** Support\
**Tags:** bug\
**Created:** [September 30, 2019, 2:35pm UTC](https://discourse.slicer.org/t/reload-button-bug-in-later-nightlies/8625 "2019-09-30T14:35:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [September 30, 2019, 2:35pm UTC](https://discourse.slicer.org/t/reload-button-bug-in-later-nightlies/8625/1 "2019-09-30T14:35:20Z")

</div>

I have noticed that in the last nightly when I press the reload button it creates extra space between `Help & Acknowledgment` and the `Reload & Test ` regions. This is valid for all plugins, so it is not plugin specific.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/f/7fd011b0427ae8baba43e74cd6ed2bc724a97f5f.png)  
each time the `Reload` is pressed a new “line” is added.

My system is MacOS 10.14.6, latest homebrew slicer-nightly package. This behavior was not been seen in the august package.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 30, 2019, 3:56pm UTC](https://discourse.slicer.org/t/reload-button-bug-in-later-nightlies/8625/2 "2019-09-30T15:56:10Z")

</div>

I’ve noticed that too - it’s kind of annoying - would be great of someone could look into fixing it.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 30, 2019, 4:16pm UTC](https://discourse.slicer.org/t/reload-button-bug-in-later-nightlies/8625/3 "2019-09-30T16:16:38Z")

</div>

I won’t be able to debug this, as the issue does not occur on Windows. @pieper, could you have a look?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 30, 2019, 5:23pm UTC](https://discourse.slicer.org/t/reload-button-bug-in-later-nightlies/8625/4 "2019-09-30T17:23:52Z")

</div>

> [@lassoan](#):
>
> could you have a look?

Yes, when I get annoyed enough 😉

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 1, 2019, 3:33pm UTC](https://discourse.slicer.org/t/reload-button-bug-in-later-nightlies/8625/5 "2019-10-01T15:33:58Z")

</div>

This has come up on my computer, too. I’ve fixed it in rev28526.

The issue was that some QLayoutItems got evaluated as (False) and the loop that supposed to remove all the items stopped at that point. Now all items are retrieved by index first, so we don’t need to evaluate them as Boolean.
