forked from qt-creator/qt-creator
Do not trigger qWarning in MaemoRunConfiguration
... when simulatorPath is unset.
This commit is contained in:
@@ -479,7 +479,7 @@ void MaemoRunConfiguration::updateSimulatorInformation() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
QDir dir(m_simulatorPath);
|
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
|
const QStringList &files = dir.entryList(QDir::Files | QDir::NoSymLinks
|
||||||
| QDir::NoDotAndDotDot);
|
| QDir::NoDotAndDotDot);
|
||||||
if (files.count() >= 2) {
|
if (files.count() >= 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user