Merge remote-tracking branch 'origin/Applications/17.12'

remotes/origin/Applications/18.04
Albert Astals Cid 8 years ago
commit 7a182c2594
  1. BIN
      autotests/data/file1.pdf.gz
  2. 1
      autotests/parttest.cpp
  3. 4
      part.cpp

Binary file not shown.

@ -919,6 +919,7 @@ void PartTest::testSaveAs_data()
QTest::addColumn<bool>("canSwapBackingFile");
QTest::newRow("pdf") << KDESRCDIR "data/file1.pdf" << "pdf" << true << true;
QTest::newRow("pdf.gz") << KDESRCDIR "data/file1.pdf.gz" << "pdf" << true << true;
QTest::newRow("epub") << KDESRCDIR "data/contents.epub" << "epub" << false << false;
QTest::newRow("jpg") << KDESRCDIR "data/potato.jpg" << "jpg" << false << true;
}

@ -1366,7 +1366,7 @@ Document::OpenResult Part::doOpenFile( const QMimeType &mimeA, const QString &fi
return Document::OpenError;
}
m_fileLastModified = QFileInfo( fileNameToOpen ).lastModified();
m_fileLastModified = QFileInfo( localFilePath() ).lastModified();
return Document::OpenSuccess;
}
@ -1462,7 +1462,7 @@ Document::OpenResult Part::doOpenFile( const QMimeType &mimeA, const QString &fi
if ( openResult == Document::OpenSuccess )
{
m_fileLastModified = QFileInfo( fileNameToOpen ).lastModified();
m_fileLastModified = QFileInfo( localFilePath() ).lastModified();
}
return openResult;
}

Loading…
Cancel
Save