|
|
|
@ -111,7 +111,7 @@ void AnyImageImporter::doOpenFile(const std::string& filename) { |
|
|
|
|
|
|
|
|
|
|
|
/* Try to open the file (error output should be printed by the plugin
|
|
|
|
/* Try to open the file (error output should be printed by the plugin
|
|
|
|
itself) */ |
|
|
|
itself) */ |
|
|
|
std::unique_ptr<AbstractImporter> importer = static_cast<PluginManager::Manager<AbstractImporter>*>(manager())->instance(plugin); |
|
|
|
std::unique_ptr<AbstractImporter> importer = static_cast<PluginManager::Manager<AbstractImporter>*>(manager())->instantiate(plugin); |
|
|
|
if(!importer->openFile(filename)) return; |
|
|
|
if(!importer->openFile(filename)) return; |
|
|
|
|
|
|
|
|
|
|
|
/* Success, save the instance */ |
|
|
|
/* Success, save the instance */ |
|
|
|
|