Don't allow the relation and column cell names to be incorrectly edited.
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 21 Aug 2008 10:02:58 +0000 (10:02 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 21 Aug 2008 10:02:58 +0000 (10:02 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7412 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/gqb/gqbGridProjTable.cpp

index 0eaa619e1f59ea6e67be405f24ad098ce017ae22..1f856dc26cb1c40a2a34c60d9c2a320e685c4b61 100644 (file)
@@ -171,6 +171,10 @@ void gqbGridProjTable::AppendItem(int col, gqbObject *item)
             (colsParents->GetCount()-1),\r
             1 );\r
         GetView()->ProcessTableMessage( msg );\r
+\r
+               // Set the cells read-only\r
+               GetView()->SetReadOnly(GetView()->GetNumberRows() - 1, 0);\r
+               GetView()->SetReadOnly(GetView()->GetNumberRows() - 1, 1);\r
     }\r
 \r
 }\r