Use templateFile for consistent usage of casted object

parent 3112f850
......@@ -93,7 +93,7 @@ void extractTemplateDescriptions()
templateFile->copyTo(dir.path());
const QString destinationPath = localDescriptionsDir + descriptionFileName;
QFile::remove(destinationPath);
QFile::rename(dir.path() + QLatin1Char('/') + templateEntry->name(), destinationPath);
QFile::rename(dir.path() + QLatin1Char('/') + templateFile->name(), destinationPath);
}
} else {
qCDebug(KAPPTEMPLATE) << "could not open template" << archName;
......
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