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