Commit 04640d5a authored by Ahmad Samir's avatar Ahmad Samir
Browse files

QStandardPaths always returns paths without a trailing slash

4ceb4ed8 (comment 271820)

GIT_SILENT

(cherry picked from commit 96186b6a)
parent 285ebb8f
......@@ -108,9 +108,7 @@ KigDocument* KigFilterNative::load( const QString& file)
if ( tempdir.isEmpty() )
KIG_FILTER_PARSE_ERROR;
if (!tempdir.endsWith(QLatin1Char('/'))) {
tempdir += QLatin1Char('/');
}
tempdir += QLatin1Char('/');
QString tempname = file.section( '/', -1 );
if ( file.endsWith( QLatin1String( ".kigz" ), Qt::CaseInsensitive ) )
......@@ -749,11 +747,7 @@ bool KigFilterNative::save07( const KigDocument& data, const QString& outfile )
else
return false;
if (!tempdir.endsWith(QLatin1Char('/'))) {
tempdir += QLatin1Char('/');
}
const QString tmpfile = tempdir + tempname + ".kig";
const QString tmpfile = tempdir + QLatin1Char('/') + tempname + ".kig";
QFile ftmpfile( tmpfile );
if ( !ftmpfile.open( QIODevice::WriteOnly ) )
return false;
......
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