If you have sorted on column(s) and remove all then the application will crash.
Suggestion: Maybe add middleclick on columns to remove sorting of that column (after you fix aforementioned bug). Middleclick is doing the same as rightclick at the moment (select to show/hide columns).