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 */

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).
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).

