Do not trigger qWarning in MaemoRunConfiguration

... when simulatorPath is unset.
This commit is contained in:
Tobias Hunger
2010-02-19 10:36:15 +01:00
parent 70b3f0e2b7
commit ecc25ff20a

View File

@@ -479,7 +479,7 @@ void MaemoRunConfiguration::updateSimulatorInformation() const
}
QDir dir(m_simulatorPath);
if (dir.exists(m_simulatorPath)) {
if (!m_simulatorPath.isEmpty() && dir.exists(m_simulatorPath)) {
const QStringList &files = dir.entryList(QDir::Files | QDir::NoSymLinks
| QDir::NoDotAndDotDot);
if (files.count() >= 2) {