aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2013-02-28 14:06:17 +0100
committerTobias Hunger <[email protected]>2013-02-28 18:12:03 +0100
commit60cea5e162ec8bd1d4422cd0a2f21c5eeabc8034 (patch)
tree30330d309015a18d7bcdbbfa0320791c836e02a0 /src/plugins/android/androidplugin.cpp
parent5063ac3105f6dd4270c5e0157011287ef58bde8b (diff)
DeviceKitInformation: Warn if something goes wrong
Change-Id: I23bb33a1415dd11e0dafc3d2b7dfa4e391fdcd87 Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/android/androidplugin.cpp')
-rw-r--r--src/plugins/android/androidplugin.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/android/androidplugin.cpp b/src/plugins/android/androidplugin.cpp
index b1a67572ab3..3b594746353 100644
--- a/src/plugins/android/androidplugin.cpp
+++ b/src/plugins/android/androidplugin.cpp
@@ -74,14 +74,15 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa
addAutoReleasedObject(new Internal::AndroidDeployConfigurationFactory);
addAutoReleasedObject(new Internal::AndroidDeviceFactory);
ProjectExplorer::KitManager::instance()->registerKitInformation(new Internal::AndroidGdbServerKitInformation);
+
+ ProjectExplorer::DeviceManager::instance()
+ ->addDevice(ProjectExplorer::IDevice::Ptr(new Internal::AndroidDevice));
+
return true;
}
void AndroidPlugin::extensionsInitialized()
{
- ProjectExplorer::DeviceManager *dm = ProjectExplorer::DeviceManager::instance();
- if (dm->find(Core::Id(Constants::ANDROID_DEVICE_ID)).isNull())
- dm->addDevice(ProjectExplorer::IDevice::Ptr(new Internal::AndroidDevice));
connect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsChanged()),
this, SLOT(kitsRestored()));
}