mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
2021-02-24 Fred Gleason <fredg@paravelsystems.com>
* Updated build system to use Qt5 instead of Qt4. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -132,7 +132,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rda->cae()->connectHost();
|
||||
|
||||
if(qApp->argc()!=1) {
|
||||
if(qApp->arguments().size()!=1) {
|
||||
debug=true;
|
||||
}
|
||||
::signal(SIGCHLD,SigHandler);
|
||||
@@ -310,14 +310,14 @@ void MainObject::readyReadData(int conn_id)
|
||||
QString line=QString::fromUtf8(data);
|
||||
for(int i=0;i<line.length();i++) {
|
||||
QChar c=line.at(i);
|
||||
if(c.toAscii()=='!') {
|
||||
if(c==QChar('!')) {
|
||||
if(!DispatchCommand(conn)) {
|
||||
return;
|
||||
}
|
||||
conn->accum="";
|
||||
}
|
||||
else {
|
||||
if((c.toAscii()!='\r')&&(c.toAscii()!='\n')) {
|
||||
if((c!=QChar('\r'))&&(c!=QChar('\n'))) {
|
||||
conn->accum+=c;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user