diff --git a/src/apps/terminal/MYOB/TermApp.cpp b/src/apps/terminal/MYOB/TermApp.cpp index 6de2edc16f..c1c075785f 100644 --- a/src/apps/terminal/MYOB/TermApp.cpp +++ b/src/apps/terminal/MYOB/TermApp.cpp @@ -78,7 +78,13 @@ TermApp::TermApp (void) be_roster->GetAppList(TERM_SIGNATURE, &teams); fWindowNumber = teams.CountItems(); - + + if(fWindowNumber == 0) + { + be_roster->GetAppList(R5_TERM_SIGNATURE, &teams); + fWindowNumber = teams.CountItems(); + } + int i = fWindowNumber / 16; int j = fWindowNumber % 16; diff --git a/src/apps/terminal/MYOB/TermConst.h b/src/apps/terminal/MYOB/TermConst.h index 4c2f73cbdc..66a798d7d0 100644 --- a/src/apps/terminal/MYOB/TermConst.h +++ b/src/apps/terminal/MYOB/TermConst.h @@ -34,14 +34,20 @@ #define MALLOC_DEBUG #endif -//////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// // Application signature (Must same in Muterminal.rsrc)// -//////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// #define TERM_SIGNATURE "application/x-vnd.Haiku-Terminal" #define PREFFILE_MIMETYPE "text/x-terminal-pref" -//////////////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////////////////////////////////// +// Signature of R5's Terminal. Needed for proper drop-in window count support +////////////////////////////////////////////////////////////////////////////// +#define R5_TERM_SIGNATURE "application/x-vnd.Be-SHEL" + +////////////////////////////////////////////////////////////////////////////// // Message constants for menu items. -//////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// // Menu Message. //