diff --git a/src/cacic_comm.cpp b/src/cacic_comm.cpp index b027c0c..2ee0205 100644 --- a/src/cacic_comm.cpp +++ b/src/cacic_comm.cpp @@ -152,7 +152,7 @@ bool CacicComm::fileDownload(const QString &mode, const QString &path, const QSt fileHandler = new QFile(pathDownload + splitPath[splitPath.size() - 1]); if( !fileHandler->open(QIODevice::WriteOnly) ) { - qDebug() << "ftpDownload: fileHandler nâo pode abrir arquivo."; + qDebug() << "fileDownload: fileHandler nâo pode abrir arquivo."; return false; } diff --git a/src/checkmodules.cpp b/src/checkmodules.cpp index e32f0e7..d72aac4 100644 --- a/src/checkmodules.cpp +++ b/src/checkmodules.cpp @@ -14,7 +14,11 @@ CheckModules::CheckModules(const QString &workingPath) modulos = configFile["agentcomputer"].toObject()["modulos"].toArray(); foreach (QJsonValue modulo, modulos){ //grava o nome com o hash de cada modulo +#ifdef Q_OS_WIN + modules[modulo.toObject()["nome"].toString().append(".exe")] = modulo.toObject()["hash"].toString(); +#else modules[modulo.toObject()["nome"].toString()] = modulo.toObject()["hash"].toString(); +#endif } } //TODO: Completar constructor. Agora que tenho os nomes dos módulos e os hashs, fazer a verificação. -- libgit2 0.21.2