Skip to content
Snippets Groups Projects
Commit 9c2b7235 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Check for valid qmlviewer executable.

parent e1295099
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@
#include <QtGui/QFormLayout>
#include <QtGui/QMainWindow>
#include <QtGui/QComboBox>
#include <QtGui/QMessageBox>
using namespace QmlProjectManager;
using namespace QmlProjectManager::Internal;
......@@ -328,6 +329,12 @@ QString QmlRunConfiguration::type() const
QString QmlRunConfiguration::executable() const
{
if (! QFile::exists(m_qmlViewer)) {
QMessageBox::information(Core::ICore::instance()->mainWindow(),
tr("QML Viewer"),
tr("Could not find the qmlviewer executable, please specify one."));
}
return m_qmlViewer;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment