Commit b7028917 authored by Johannes Zarl-Zierl's avatar Johannes Zarl-Zierl
Browse files

Fix image import for kim files with external images.

Use relative paths in ImportHandler::copyNextFromExternal().

CCBUG: 334393
parent 03aa05c4
......@@ -115,7 +115,7 @@ void ImportExport::ImportHandler::copyNextFromExternal()
if ( i == 1 )
src = src2;
src.setFileName( fileName.absolute() );
src.setFileName( fileName.relative() );
if ( KIO::NetAccess::exists( src, KIO::NetAccess::SourceSide, MainWindow::Window::theMainWindow() ) ) {
KUrl dest;
dest.setPath( m_fileMapper->uniqNameFor(fileName) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment