From 94030c369cc3f7f6c4161caf5211d2e5523047ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 30 Aug 2017 09:53:05 +0000 Subject: [PATCH] commit request git-svn-id: svn://db.shs.com.ru/libs@274 a8b55f48-bf90-11e4-a774-851b48703e85 --- piqt_utils/piqt_connection_edit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piqt_utils/piqt_connection_edit.cpp b/piqt_utils/piqt_connection_edit.cpp index 8c88675..a32ae3e 100644 --- a/piqt_utils/piqt_connection_edit.cpp +++ b/piqt_utils/piqt_connection_edit.cpp @@ -324,8 +324,8 @@ void ConnectionEdit::recreateConnection() { PIPacketExtractor * pe = conn->addFilter(Q2PIString(fi_t->name()),conn->deviceByName(name_from), fi_t->mode()); if (!pe) continue; pe->setBufferSize(fi_t->bufferSize()); - pe->setHeader(PIByteArray::fromString(Q2PIString(fi_t->header()))); - pe->setFooter(PIByteArray::fromString(Q2PIString(fi_t->footer()))); + pe->setHeader(PIByteArray::fromUserInput(Q2PIString(fi_t->header()))); + pe->setFooter(PIByteArray::fromUserInput(Q2PIString(fi_t->footer()))); pe->setTimeout(fi_t->timeout()); pe->setPacketSize(fi_t->packetSize()); pe->setPayloadSize(fi_t->packetSize()); @@ -365,7 +365,7 @@ void ConnectionEdit::recreateConnection() { si->name(); conn->addSender(Q2PIString(si->name()), Q2PIString(di_t->path()), si->frequency()); if (!si->data().isEmpty()) - conn->setSenderFixedData(Q2PIString(si->name()), PIByteArray::fromString(Q2PIString(si->data()))); + conn->setSenderFixedData(Q2PIString(si->name()), PIByteArray::fromUserInput(Q2PIString(si->data()))); } else { if (type == __CV_Device) name_from = ((DeviceItem*)bi_f)->name(); if (type == __CV_Filter) name_from = ((FilterItem*)bi_f)->name();