Patch from Gerasim Troeglazov to fix an issue with a false initialized BApplication

when an attempt is make to create a second copy BApplication 
(first QtApp - the second in the SDL).
This commit is contained in:
Scott McCreary
2010-02-01 16:19:06 +00:00
parent 4c34aa0b44
commit 0b282594a8

View File

@@ -0,0 +1,30 @@
Index: src/main/beos/SDL_BeApp.cc
===================================================================
--- src/main/beos/SDL_BeApp.cc (revision 5545)
+++ src/main/beos/SDL_BeApp.cc (working copy)
@@ -39,13 +39,15 @@
static int StartBeApp(void *unused)
{
+ if(!be_app) {
BApplication *App;
App = new BApplication("application/x-SDL-executable");
App->Run();
delete App;
- return(0);
+ }
+ return(0);
}
/* Initialize the Be Application, if it's not already started */
@@ -86,7 +88,7 @@
++SDL_BeAppActive;
/* The app is running, and we're ready to go */
- return(0);
+ return(0);
}
/* Quit the Be Application, if there's nothing left to do */