QTfrontend/tcpBase.cpp
changeset 379 e4cd3cd209c6
parent 291 afa378f1e961
child 380 86f3d818da1c
equal deleted inserted replaced
378:dde4a4a3e0e1 379:e4cd3cd209c6
   147 		{
   147 		{
   148 			IPCSocket->write(toSendBuf);
   148 			IPCSocket->write(toSendBuf);
   149 			if(m_isDemoMode) demo->append(toSendBuf);
   149 			if(m_isDemoMode) demo->append(toSendBuf);
   150 			toSendBuf.clear();
   150 			toSendBuf.clear();
   151 		}
   151 		}
   152 		IPCSocket->write(buf);
   152 		if(!buf.isEmpty()) {
   153 		if(m_isDemoMode) demo->append(buf);
   153 		  IPCSocket->write(buf);
       
   154 		  if(m_isDemoMode && demo) demo->append(buf);
       
   155 		}
   154 	}
   156 	}
   155 }
   157 }