Do the same for the JobSetupWindow and PrinterSetupWindow's Go()

methods too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38846 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2010-09-29 09:54:22 +00:00
parent fd7d3a7d40
commit 4cc17e8c78
2 changed files with 80 additions and 68 deletions
@@ -317,9 +317,16 @@ JobSetupWindow::Go()
{ {
MoveTo(300,300); MoveTo(300,300);
Show(); Show();
acquire_sem(fExitSem);
if (Lock()) Quit(); while (acquire_sem(fExitSem) == B_INTERRUPTED) {
return fResult; }
// Cache the value as after Quit() this object is deleted.
status_t result = fResult;
if (Lock())
Quit();
return result;
} }
@@ -236,9 +236,14 @@ PrinterSetupWindow::Go()
{ {
MoveTo(300, 300); MoveTo(300, 300);
Show(); Show();
acquire_sem(fExitSem);
Lock(); while (acquire_sem(fExitSem) == B_INTERRUPTED) {
}
// cache the value as after Quit() this object is deleted
status_t result = fResult;
if (Lock())
Quit(); Quit();
return fResult; return result;
} }