As suggested by Humdinger, replace "%p" by "--", if the shell is the active

process.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39528 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-11-19 22:27:46 +00:00
parent d0405baf86
commit 2e394a4764

View File

@ -47,8 +47,11 @@ TitlePlaceholderMapper::MapPlaceholder(char placeholder, int64 number,
}
case 'p':
// process name
_string = fProcessInfo.Name();
// process name -- use "--", if the shell is active
if (fProcessInfo.ID() == fProcessInfo.ShellProcessID())
_string = "--";
else
_string = fProcessInfo.Name();
return true;
}