* No need to show an error alert when the preflet is already running, it behaves

as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34134 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner 2009-11-19 14:39:48 +00:00
parent 7d39f1f137
commit 46cac7f7dd

View File

@ -511,7 +511,7 @@ void
NetworkStatusView::_OpenNetworksPreferences()
{
status_t status = be_roster->Launch("application/x-vnd.Haiku-Network");
if (status < B_OK) {
if (status != B_OK && status != B_ALREADY_RUNNING) {
BString errorMessage("Launching the Network preflet failed.\n\n"
"Error: ");
errorMessage << strerror(status);