More alerts which are a bit more standard and family-friendly. :^)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19594 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
314167cd80
commit
4580005679
@ -66,7 +66,7 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg)
|
||||
|
||||
fEndpoint = new BNetEndpoint(SOCK_STREAM);
|
||||
if ((fReady = fEndpoint->InitCheck()) != B_OK) {
|
||||
BAlert *alert = new BAlert("", "Fail to create the NetEndpoint!", "Damn");
|
||||
BAlert *alert = new BAlert("", "Fail to create the NetEndpoint!", "OK");
|
||||
alert->Go();
|
||||
return;
|
||||
};
|
||||
@ -75,7 +75,7 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg)
|
||||
printf("Connected to HP JetDirect printer port at %s:%d\n", fHost, fPort);
|
||||
fReady = B_OK;
|
||||
} else {
|
||||
BAlert *alert = new BAlert("", "Can't connect to HP JetDirect printer port!", "Bad luck");
|
||||
BAlert *alert = new BAlert("", "Can't connect to HP JetDirect printer port!", "OK");
|
||||
alert->Go();
|
||||
};
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ bool SetupView::UpdateViewData()
|
||||
if (ep->Connect(server->Text(), atoi(queue->Text())) != B_OK) {
|
||||
BString text;
|
||||
text << "Fail to connect to " << server->Text() << ":" << (int) port << "!";
|
||||
BAlert *alert = new BAlert("", text.String(), "Damn");
|
||||
BAlert *alert = new BAlert("", text.String(), "OK");
|
||||
alert->Go();
|
||||
return false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user