Commit 80cea384 authored by kh1's avatar kh1
Browse files

Fix annoying message box while switching targets with invalid qt version.

Reviewed-by: ck
parent 81787fbd
......@@ -58,6 +58,8 @@
#include <QtXml/QXmlStreamReader>
#include <limits.h>
using namespace ProjectExplorer;
using namespace Qt4ProjectManager;
using namespace Qt4ProjectManager::Internal;
......@@ -71,7 +73,7 @@ MaemoQemuManager::MaemoQemuManager(QObject *parent)
: QObject(parent)
, m_qemuAction(0)
, m_qemuProcess(new QProcess(this))
, m_runningQtId(-1)
, m_runningQtId(INT_MIN)
, m_userTerminated(false)
{
m_qemuStarterIcon.addFile(":/qt-maemo/images/qemu-run.png", iconSize);
......@@ -412,7 +414,7 @@ void MaemoQemuManager::terminateRuntime()
void MaemoQemuManager::qemuProcessFinished()
{
m_runningQtId = -1;
m_runningQtId = INT_MIN;
QemuStatus status = QemuFinished;
QString error;
......@@ -546,7 +548,7 @@ void MaemoQemuManager::toggleStarterButton(Target *target)
}
}
if (m_runtimes.isEmpty() || !m_runtimes.contains(uniqueId))
if (uniqueId >= 0 && (m_runtimes.isEmpty() || !m_runtimes.contains(uniqueId)))
qtVersionsChanged(QList<int>() << uniqueId);
bool isRunning = m_qemuProcess->state() != QProcess::NotRunning;
......
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