Ignore:
Timestamp:
07/24/18 16:52:00 (6 years ago)
Author:
Sanahuja Guillaume
Message:

avoid trying to send xml message of size=0

add debug in case of gcs crash when clicking on apply

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/ConnectionLayout.cpp

    r253 r258  
    6565
    6666void ConnectionLayout::XmlToSend(QDomDocument doc) {
    67   // fprintf(stderr,"xml to send\n%s\n",doc.toString().toLocal8Bit().constData());
     67   //fprintf(stderr,"xml to send\n%s\n",doc.toString().toLocal8Bit().constData());
    6868 
    6969  // xml to send a mettre dans le manager
    70   socket->write(doc.toString().toLocal8Bit().constData(),doc.toString().toLocal8Bit().length());/*
     70  if(doc.toString().toLocal8Bit().length()!=0) {
     71    socket->write(doc.toString().toLocal8Bit().constData(),doc.toString().toLocal8Bit().length());
     72  }
     73  /*
    7174  QMetaObject::invokeMethod(
    7275      socket, "write", Qt::BlockingQueuedConnection,
Note: See TracChangeset for help on using the changeset viewer.