Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

SQL tab on Server's properties dialog?


  • From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
  • To: pgadmin-hackers(at)postgresql(dot)org
  • Subject: SQL tab on Server's properties dialog?
  • Date: Sat, 26 Jul 2008 23:44:08 +0200
  • Message-id: <488B9AA8.8010905@lelarge.info> <text/plain>

Hi,

While working on the dialogs' review, I was wondering why we show the SQL tab for the Server's properties dialog. I think we shouldn't display this tab on this dialog. The patch enclosed does this.

I'm not sure this qualifies as a bug. But it shouldn't be hard to apply the patch on the 1.8 branch.

Comments?


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com
Index: pgadmin/dlg/dlgProperty.cpp
===================================================================
--- pgadmin/dlg/dlgProperty.cpp	(revision 7393)
+++ pgadmin/dlg/dlgProperty.cpp	(working copy)
@@ -311,8 +311,11 @@
 
 void dlgProperty::CreateAdditionalPages()
 {
-    sqlPane = new ctlSQLBox(nbNotebook, CTL_PROPSQL, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxSUNKEN_BORDER | wxTE_READONLY | wxTE_RICH2);
-    nbNotebook->AddPage(sqlPane, wxT("SQL"));
+    if (wxString(factory->GetTypeName()).Cmp(wxT("Server")))
+    {
+      sqlPane = new ctlSQLBox(nbNotebook, CTL_PROPSQL, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxSUNKEN_BORDER | wxTE_READONLY | wxTE_RICH2);
+      nbNotebook->AddPage(sqlPane, wxT("SQL"));
+    }
 }
 
 


Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group