user presses the delete key when the delete button is
disabled.
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@8089
a7884b65-44f6-0310-8a51-
81a127f17b15
Date Dev Ver Change details
---------- --- ------ --------------
+2009-11-25 DP 1.10.1 Don't attempt to remove rows in the edit grid if the
+ user presses the delete key when the delete button is
+ disabled.
2009-11-23 GL 1.12.0 Support for "ALTER TABLE ... ALTER COLUMN ... SET
STATISTICS DISTINCT".
2009-11-23 DP 1.10.1 Only offer valid server encodings for new databases
return;
}
+ // If the delete button is disabled, don't try to delete anything
+ if (!toolBar->GetToolEnabled(MNU_DELETE))
+ return;
+
wxArrayInt delrows=sqlGrid->GetSelectedRows();
int i=delrows.GetCount();