Skip to content
Snippets Groups Projects
Commit ba4d90f5 authored by Miika Turkia's avatar Miika Turkia
Browse files

.kim import crashes KPA fixed

There was indeed a bug in import code that was demonstrated with the
provided test.kim. Under special circumstances the import file name was
set to root and was later on caught by Q_ASSERT with crashing result.

BUG: 201921
parent ecd09dea
No related branches found
No related tags found
No related merge requests found
......@@ -268,7 +268,7 @@ void ImportExport::ImportHandler::updateInfo( DB::ImageInfoPtr dbInfo, DB::Image
void ImportExport::ImportHandler::addNewRecord( DB::ImageInfoPtr info )
{
QString importName = Utilities::stripImageDirectory(m_fileMapper->uniqNameFor(info->fileName(DB::RelativeToImageRoot)));
QString importName = info->fileName( DB::RelativeToImageRoot );
DB::ImageInfoPtr updateInfo(new DB::ImageInfo(importName, DB::Image, false ));
updateInfo->setLabel( info->label() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment