Index: sources/cloudsync/CloudSyncController.cpp =================================================================== diff -u -r80b5e8f1ebb90c03c37d90d90cd2da3bd95d6803 -r2912750c8e787739f2cb2069fee1b33195a9ef54 --- sources/cloudsync/CloudSyncController.cpp (.../CloudSyncController.cpp) (revision 80b5e8f1ebb90c03c37d90d90cd2da3bd95d6803) +++ sources/cloudsync/CloudSyncController.cpp (.../CloudSyncController.cpp) (revision 2912750c8e787739f2cb2069fee1b33195a9ef54) @@ -683,8 +683,8 @@ QVariantList args ; Errors_Enum error = eError_Unknown; qint32 messageID = UI2CS(static_cast( eMessageID_TxReport )); - - if ( ! isRegistered() ) { error = eError_NotRegistered ; args = { vFileName }; ok = false; goto lErr; } + // DEBUG ok = false; // using the ok bool which is true as the debug flag to bypass the registration on debug testing. + if ( ok && ! isRegistered() ) { error = eError_NotRegistered ; args = { vFileName }; ok = false; goto lErr; } sendUIBuff(makeUIBuff( messageID , { vFileName } )); return; @@ -700,7 +700,7 @@ */ bool CloudSyncController::sendMessage(const Message &vMessage) { bool ok = false; - + //DEBUG qDebug() << Q_FUNC_INFO << vMessage.id; // this function is used in sendUIResponse, therefore the message IDs which are responses should be implemented here. switch (vMessage.id) { case eMessageID_DeviceRegister : /* No Request/Response */ break; @@ -832,8 +832,8 @@ mTxCode = vMessage.params[0].trimmed(); if ( mTxCode.isEmpty() ) { toLog(eError_TxCodeEmpty , {}); ok = false; goto lOut; } - emit didTxCodeReceive ( mTxCode ); //DEBUG qDebug() << " ---------- " << mTxCode; + emit didTxCodeReceive ( mTxCode ); lOut: return ok;