forked from qt-creator/qt-creator
ios: actually open help when detecting non setup device
Change-Id: I72d8c853c01a62d4e62ab0db382e9144f6f03fd6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "iostoolhandler.h"
|
||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
#include <coreplugin/helpmanager.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QVariant>
|
||||
@@ -318,11 +319,12 @@ void IosDeviceManager::deviceInfo(IosToolHandler *, const QString &uid,
|
||||
mBox.setText(tr("An iOS device in user mode has been detected."));
|
||||
mBox.setInformativeText(tr("Do you want to see how to set it up for development?"));
|
||||
mBox.setStandardButtons(QMessageBox::NoAll | QMessageBox::No | QMessageBox::Yes);
|
||||
mBox.setDefaultButton(QMessageBox::No);
|
||||
mBox.setDefaultButton(QMessageBox::Yes);
|
||||
int ret = mBox.exec();
|
||||
switch (ret) {
|
||||
case QMessageBox::Yes:
|
||||
// open doc
|
||||
Core::HelpManager::handleHelpRequest(
|
||||
QLatin1String("qthelp://org.qt-project.qtcreator/doc/creator-developing-ios.html"));
|
||||
break;
|
||||
case QMessageBox::No:
|
||||
newDev->m_ignoreDevice = true;
|
||||
|
||||
Reference in New Issue
Block a user