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);
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user