Make context menu entries optional based on table contents. re #9796
resolving cppcheck warning - unused variable. re #9796
Resolved testing comments by Peter. re #9796
Fix for obscure usage of drop down menus. re #9796
Merge remote-tracking branch 'origin/feature/9796_hide_sort_for_table_workspace'