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:
cxl 2013-09-03 17:57:55 +00:00
parent be9eb40af6
commit 23fe370cd1
2 changed files with 11 additions and 3 deletions

View file

@ -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++)

View file

@ -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()