diff --git a/src/plugins/analyzerbase/startremotedialog.cpp b/src/plugins/analyzerbase/startremotedialog.cpp index a7cc9c68d9e..e971e6a7ee2 100644 --- a/src/plugins/analyzerbase/startremotedialog.cpp +++ b/src/plugins/analyzerbase/startremotedialog.cpp @@ -46,10 +46,24 @@ using namespace Utils; namespace Analyzer { namespace Internal { +class SshKitChooser : public KitChooser +{ +public: + SshKitChooser(QWidget *parent = 0) : KitChooser(parent) { } + +private: + bool kitMatches(const Kit *kit) const { + if (!KitChooser::kitMatches(kit)) + return false; + const IDevice::ConstPtr device = DeviceKitInformation::device(kit); + return device && !device->sshParameters().host.isEmpty(); + } +}; + class StartRemoteDialogPrivate { public: - KitChooser *kitChooser; + SshKitChooser *kitChooser; QLineEdit *executable; QLineEdit *arguments; QLineEdit *workingDirectory; @@ -65,7 +79,7 @@ StartRemoteDialog::StartRemoteDialog(QWidget *parent) setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowTitle(tr("Start Remote Analysis")); - d->kitChooser = new KitChooser(this); + d->kitChooser = new Internal::SshKitChooser(this); d->executable = new QLineEdit(this); d->arguments = new QLineEdit(this); d->workingDirectory = new QLineEdit(this);