implement update_action and change the context menu's upload to update

And anyone who uses Qt will know this function is wasting a function call, a c-tor and a d-tor to do the work which Qt should do.