Commit 7e0080f1 authored by Ragnar Thomsen's avatar Ragnar Thomsen

singlefileplugin: Open svgz's with correct filename

When opening svgz's just remove the terminal "z" from the filename,
instead of appending ".uncompressed".

BUG: 252701
FIXED-IN: 15.08.2
REVIEW: 125518
parent b9908619
......@@ -149,6 +149,12 @@ const QString LibSingleFileInterface::uncompressedFileName() const
{
QString uncompressedName(QFileInfo(filename()).fileName());
// Bug 252701: For .svgz just remove the terminal "z".
if (uncompressedName.endsWith(QLatin1String(".svgz"), Qt::CaseInsensitive)) {
uncompressedName.chop(1);
return uncompressedName;
}
foreach(const QString & extension, m_possibleExtensions) {
qCDebug(KERFUFFLE_PLUGIN) << extension;
......
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