Commit dfd4fa17 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED handling a (very) rare case of component with no extension

parent 36fd62e4
......@@ -52,7 +52,6 @@ void usage(char* appName) {
options::print_usage(cerr);
}
/**
* @ingroup group_sdk_application_cepgenerator
*
......@@ -107,7 +106,7 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;
}
catch (...) {
std::cout << argv[0] << " aborted..." << std::endl << "Unknown Exception" << std::endl;
std::cout << argv[0] << " aborted by unknown exception" << std::endl;
return EXIT_FAILURE;
}
......
......@@ -764,7 +764,7 @@ testcepfile() {
# --------------------------------------------------------------------------
# testcepfile cep.xml nrOfExcpectedNewExtensions
testcepfile cep.xml nrOfExcpectedNewExtensions
testcepfile complete-test-1.xml 3 testlib
testcepfile exampleComponents.xml 2
testcepfile actionsExamplesLicence.xml 2
......
......@@ -220,7 +220,8 @@ bool ExtensionManager::loadExtension(ExtensionManager::ExtensionType type, QStri
// if the component only declared an extension that was already managed
// then the component was loaded but is not valid
returnValue = (extCount > 0);
// (very) special case: for component extension that do not manage any extension (component have to be created directly by actions). Then it is ok not to have registered any extension
returnValue = (extCount > 0 || cp->getFileExtensions().empty());
}
}
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment