mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 18:13:47 +02:00
use qWarning rather than qCritical because qCritical may exit
This commit is contained in:
parent
5802159d16
commit
b9ea93de57
1 changed files with 3 additions and 3 deletions
|
@ -175,7 +175,7 @@ void DomainServer::parseCommandLine() {
|
|||
parser.addOption(domainIDOption);
|
||||
|
||||
if (!parser.parse(QCoreApplication::arguments())) {
|
||||
qCritical() << parser.errorText() << endl;
|
||||
qWarning() << parser.errorText() << endl;
|
||||
parser.showHelp();
|
||||
Q_UNREACHABLE();
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ void DomainServer::parseCommandLine() {
|
|||
}
|
||||
|
||||
if (_iceServerAddr.isEmpty()) {
|
||||
qCritical() << "Could not parse an IP address and port combination from" << hostnamePortString;
|
||||
qWarning() << "Could not parse an IP address and port combination from" << hostnamePortString;
|
||||
QMetaObject::invokeMethod(this, "quit", Qt::QueuedConnection);
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ DomainServer::~DomainServer() {
|
|||
|
||||
void DomainServer::queuedQuit(QString quitMessage, int exitCode) {
|
||||
if (!quitMessage.isEmpty()) {
|
||||
qCritical() << qPrintable(quitMessage);
|
||||
qWarning() << qPrintable(quitMessage);
|
||||
}
|
||||
|
||||
QCoreApplication::exit(exitCode);
|
||||
|
|
Loading…
Reference in a new issue