add pause to prevent yab crashing on Deskbar Close all

This commit is contained in:
Jim
2015-04-23 20:09:07 -07:00
parent 3030c5213a
commit 66bedce9ba
2 changed files with 6 additions and 3923 deletions

View File

@@ -331,7 +331,7 @@ bool YabInterface::ExitRequested()
// printf("QUITDEBUG: 3\n"); // printf("QUITDEBUG: 3\n");
// BMessenger(be_app).SendMessage(new BMessage(B_QUIT_REQUESTED)); BMessenger(be_app).SendMessage(new BMessage(B_QUIT_REQUESTED));
Quit(); Quit();
// printf("QUITDEBUG: Quit\n"); // printf("QUITDEBUG: Quit\n");
// printf("QUITDEBUG: wait\n"); // printf("QUITDEBUG: wait\n");
@@ -369,6 +369,7 @@ void YabInterface::OpenWindow(const BRect frame, const char* id, const char* tit
int YabInterface::CloseWindow(const char* view) int YabInterface::CloseWindow(const char* view)
{ {
int tmp = 0; int tmp = 0;
YabView *myView = cast_as((BView*)viewList->GetView(view), YabView); YabView *myView = cast_as((BView*)viewList->GetView(view), YabView);
if(myView) if(myView)
@@ -450,7 +451,7 @@ int YabInterface::CloseWindow(const char* view)
} }
else else
Error(view, "VIEW"); Error(view, "VIEW");
return tmp; return tmp;
} }
@@ -9389,12 +9390,12 @@ void YabInterface::MouseSet(const char* opt)
const char* YabInterface::GetMessageString() const char* YabInterface::GetMessageString()
{ {
snooze(20000); snooze(85000);
BString tmp(""); BString tmp;
if(exiting) if(exiting)
{ {
tmp += "_QuitRequested|"; tmp += "_QuitRequested|";
exiting = false; //exiting = false;
} }
tmp += localMessage; tmp += localMessage;
localMessage = ""; localMessage = "";

File diff suppressed because it is too large Load Diff