mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: LocalProcess Start now correctly closes duplicated handles, Ide: Qtf designer editor now zoomable/sizeable (thanks Klugier)
git-svn-id: svn://ultimatepp.org/upp/trunk@6306 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
be9eb40af6
commit
23fe370cd1
2 changed files with 11 additions and 3 deletions
|
|
@ -189,6 +189,11 @@ bool LocalProcess::Start(const char *command, const char *envptr)
|
|||
dup2(wpipe[1], 1);
|
||||
dup2(wpipe[1], 2);
|
||||
|
||||
close(rpipe[0]);
|
||||
close(rpipe[1]);
|
||||
close(wpipe[0]);
|
||||
close(wpipe[1]);
|
||||
|
||||
#if DO_LLOG
|
||||
LLOG(args.GetCount() << "arguments:");
|
||||
for(int a = 0; a < args.GetCount(); a++)
|
||||
|
|
|
|||
|
|
@ -56,9 +56,12 @@ void QtfDlgEditor::Serialize(Stream& s)
|
|||
|
||||
QtfDlgEditor::QtfDlgEditor()
|
||||
{
|
||||
Add(editor.SizePos());
|
||||
Rect r = GetWorkArea();
|
||||
SetRect(0, 0, r.GetWidth() - 100, r.GetHeight() - 100);
|
||||
Add(editor.SizePos());
|
||||
Rect r = GetWorkArea();
|
||||
Sizeable().Zoomable();
|
||||
SetRect(0, 0, r.GetWidth() - 100, r.GetHeight() - 100);
|
||||
SetMinSize(Size(min(640, r.GetWidth() - 100), min(480, r.GetHeight() - 100)));
|
||||
Title("Editor");
|
||||
}
|
||||
|
||||
void QtfDlg::Editor()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue