Fixes #2236: Popup menu is not shown anymore when "Change Table Mode" button is disabled.