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:
@@ -317,9 +317,16 @@ JobSetupWindow::Go()
|
||||
{
|
||||
MoveTo(300,300);
|
||||
Show();
|
||||
acquire_sem(fExitSem);
|
||||
if (Lock()) Quit();
|
||||
return fResult;
|
||||
|
||||
while (acquire_sem(fExitSem) == B_INTERRUPTED) {
|
||||
}
|
||||
|
||||
// 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);
|
||||
Show();
|
||||
acquire_sem(fExitSem);
|
||||
Lock();
|
||||
Quit();
|
||||
|
||||
return fResult;
|
||||
while (acquire_sem(fExitSem) == B_INTERRUPTED) {
|
||||
}
|
||||
|
||||
// cache the value as after Quit() this object is deleted
|
||||
status_t result = fResult;
|
||||
if (Lock())
|
||||
Quit();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user