Fixes #3757 : No more wrong display in popup
Merge pull request #266 from VinceMacBuche/bug_3757/no_invalid_display_when_closing

Fixes #3757 : No more wrong display in popup