Author: andreas
Date: 2005-11-20 16:11:59 +0000 (Sun, 20 Nov 2005)
New Revision: 4747
Modified:
branches/REL-1_4_0_PATCHES/pgadmin3/src/frm/frmEditGrid.cpp
Log:
Don't show pk hint when editing view
Modified: branches/REL-1_4_0_PATCHES/pgadmin3/src/frm/frmEditGrid.cpp
===================================================================
--- branches/REL-1_4_0_PATCHES/pgadmin3/src/frm/frmEditGrid.cpp 2005-11-20 16:00:01 UTC (rev 4746)
+++ branches/REL-1_4_0_PATCHES/pgadmin3/src/frm/frmEditGrid.cpp 2005-11-20 16:11:59 UTC (rev 4747)
@@ -671,7 +671,7 @@
event.m_size = GetSize();
OnSize(event);
- if (!hasOids && primaryKeyColNumbers.IsEmpty())
+ if (!hasOids && primaryKeyColNumbers.IsEmpty() && relkind == 'r')
frmHint::ShowHint(this, HINT_READONLY_NOPK, tableName);
}