Community
Participate
Working Groups
Created attachment 139168 [details] Patch with defensive programming In Mac after deleting a row (removes selection from table) you can get a context menu from table header. The menu doesn't know that there is no selection and allows to set the cell value to null and also edit it. I created a patch that adds some defensive programming.
Hi Quy, please evaluate the patch.
Hi Brian, The patch is fine.
Hi, is this patch already committed to HEAD?
Any update on this?
The patch didn't apply, since it also included a change done with bug 279786. I am attaching an updated patch. I rewrote the other changes to avoid early exits.
Created attachment 181684 [details] Patch for plugin o.e.d.sqltools.data.ui
With the patch, the "Edit Value" action on the header now does nothing when there is no selected row. However, you can still do a "Set Null" action. The table editor inserts a new row in that case. That appears to be a feature.
Checked in fix, tagged to v201010260615 in HEAD (DTP 1.9). Let me know if this fix needs to be applied to the DTP 1.8.2 stream.