Hi, Le mardi 21 juillet 2009 à 16:38:26, Luiz K. Matsumura a écrit : > [...] > Just a little bug. > > In the query tool screen, each time we switch from "Graphical Query > Builder" pane to "SQL Editor" pane a new item is added > to Menu Query : "Generate SQL from Graphical query builder model". > If we switch 10 times then 10 entries is added to menu. > > Environment: > > Windows XP pro sp3 > PgAdmin 1.10.0 >
I also have the issue on Kubuntu. This patch should fix this. Regards. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com
Index: pgadmin/frm/frmQuery.cpp =================================================================== --- pgadmin/frm/frmQuery.cpp (révision 7978) +++ pgadmin/frm/frmQuery.cpp (copie de travail) @@ -1004,16 +1006,18 @@ } else { - queryMenu->Append(MNU_EXECUTE, _("Generate SQL from Graphical Query Builder Model")); - queryMenu->SetHelpString(MNU_EXECFILE, _("Generate SQL from Graphical Query Builder Model")); - toolBar->SetToolShortHelp(MNU_EXECUTE, _("Generate SQL from Graphical Query Builder Model")); - toolBar->SetToolShortHelp(MNU_EXECFILE, _("Generate SQL from Graphical Query Builder Model")); manager.GetPane(wxT("outputPane")).Show(false); manager.GetPane(wxT("scratchPad")).Show(false); manager.Update(); if(firstTime) //Things that should be done on first click on GQB { + // Menu + queryMenu->Append(MNU_EXECUTE, _("Generate SQL from Graphical Query Builder Model")); + queryMenu->SetHelpString(MNU_EXECFILE, _("Generate SQL from Graphical Query Builder Model")); + toolBar->SetToolShortHelp(MNU_EXECUTE, _("Generate SQL from Graphical Query Builder Model")); + toolBar->SetToolShortHelp(MNU_EXECFILE, _("Generate SQL from Graphical Query Builder Model")); + // Size, and pause to allow the window to draw adjustGQBSizes(); wxTheApp->Yield(true);
-- Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-support