From: | Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | "Clear window" in the SQL Editor |
Date: | 2010-11-29 22:35:31 |
Message-ID: | 4CF42AB3.4020603@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hello,
In the SQL editor window, when the focus is outside of any text box, the
button "clear window" does nothing.
I believe that confuse the user. In this case the button should clear
the SQL editor.
Do you agree?
I made this change.
void frmQuery::OnClear(wxCommandEvent& ev)
{
wxWindow *wnd=currentControl();
if (wnd == sqlQuery)
sqlQuery->ClearAll();
else if (wnd == msgResult)
msgResult->Clear();
else if (wnd == msgHistory)
msgHistory->Clear();
else if (wnd == scratchPad)
scratchPad->Clear();
+ else
+ sqlQuery->ClearAll();
}
Sorry my bad English. I am Brazilian.
The Google translator is helping me.
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Lelarge | 2010-11-29 23:07:54 | Ticket 280: Add timestamp of last xact replay in server props |
Previous Message | Guillaume Lelarge | 2010-11-28 17:00:43 | pgAdmin website commit: Update chinese translation, per Quan Zongliang. |