mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-16 06:05:49 -06:00
Add modificator Ctrl for popup menu "List columns header"
При нажатом Ctrl в буфер обмена копируются только имена столбцов с разделителем ",".
This commit is contained in:
parent
38b4b4a5ed
commit
e2eeabf21c
3 changed files with 6 additions and 4 deletions
|
|
@ -339,7 +339,7 @@ wxString ctlSQLResult::OnGetItemText(long item, long col) const
|
|||
}
|
||||
return wxEmptyString;
|
||||
}
|
||||
wxString ctlSQLResult::CopySelColumnNameType()
|
||||
wxString ctlSQLResult::CopySelColumnNameType(bool onlyname)
|
||||
{
|
||||
wxString ss = wxEmptyString;
|
||||
if (GetSelectedCols().GetCount()) {
|
||||
|
|
@ -356,7 +356,8 @@ wxString ctlSQLResult::CopySelColumnNameType()
|
|||
wxString colName = colNames.Item(cl);
|
||||
wxString colType = colTypes.Item(cl);
|
||||
if (!ss.IsEmpty()) ss.Append(", ");
|
||||
ss.Append(colName + " " + colType);
|
||||
ss.Append(colName);
|
||||
if (!onlyname) ss.Append(" " + colType);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue