Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > main-testing-src > by-pkgid > 2a1cc3a3b6da8f664b332b2653ba07f2 > files > 1

kdepim4-runtime-4.4.9-0.1mdv2010.2.src.rpm

Index: migration/kmigratorbase.cpp
===================================================================
--- migration/kmigratorbase.cpp
+++ migration/kmigratorbase.cpp	2010-03-28 23:43:52.000000000 +0200
@@ -87,12 +87,7 @@
 
 void KMigratorBase::createAgentInstance(const QString& typeId, QObject* receiver, const char* slot)
 {
-  const AgentType type = AgentManager::self()->type( typeId );
-  if ( !type.isValid() ) {
-    migrationFailed( i18n("Unable to obtain resource type '%1'.", typeId) );
-    return;
-  }
-  AgentInstanceCreateJob *job = new AgentInstanceCreateJob( type, this );
+  AgentInstanceCreateJob *job = new AgentInstanceCreateJob( typeId, this );
   connect( job, SIGNAL( result( KJob* ) ), receiver, slot );
   job->start();
 }