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:
@@ -66,7 +66,7 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg)
|
|||||||
|
|
||||||
fEndpoint = new BNetEndpoint(SOCK_STREAM);
|
fEndpoint = new BNetEndpoint(SOCK_STREAM);
|
||||||
if ((fReady = fEndpoint->InitCheck()) != B_OK) {
|
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();
|
alert->Go();
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
@@ -75,7 +75,7 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg)
|
|||||||
printf("Connected to HP JetDirect printer port at %s:%d\n", fHost, fPort);
|
printf("Connected to HP JetDirect printer port at %s:%d\n", fHost, fPort);
|
||||||
fReady = B_OK;
|
fReady = B_OK;
|
||||||
} else {
|
} 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();
|
alert->Go();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ bool SetupView::UpdateViewData()
|
|||||||
if (ep->Connect(server->Text(), atoi(queue->Text())) != B_OK) {
|
if (ep->Connect(server->Text(), atoi(queue->Text())) != B_OK) {
|
||||||
BString text;
|
BString text;
|
||||||
text << "Fail to connect to " << server->Text() << ":" << (int) port << "!";
|
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();
|
alert->Go();
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user