This commit is contained in:
Michał Garapich
2015-03-31 20:33:23 +02:00
committed by Roland Winklmeier
parent 45f48f7594
commit 9d37a0876d
3 changed files with 13 additions and 15 deletions

View File

@@ -245,12 +245,12 @@ namespace BlackCore
Q_ASSERT(this->getIContextApplication());
Q_ASSERT(this->getIContextApplication()->isUsingImplementingObject());
if (this->m_simulator && this->m_simulator->getSimulatorInfo() == simulatorInfo) { return true; } // already loaded
if (simulatorInfo.isUnspecified()) { return false; }
if (this->m_simulator && this->m_simulator->getSimulatorInfo() == simulatorInfo) {
return true;
} // already loaded
// warning if we do not have any plugins
if (m_simulatorFactories.isEmpty())
{
if (m_simulatorFactories.isEmpty()) {
CLogMessage(this).error("No simulator plugins");
return false;
}