MCPcopy Create free account
hub / github.com/KDE/ghostwriter / documentIsDraft

Method documentIsDraft

src/documentmanager.cpp:959–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959bool DocumentManagerPrivate::documentIsDraft()
960{
961 if (document->isNew()) {
962 return false;
963 }
964
965 QFileInfo info(document->filePath());
966
967 return ((info.dir().absolutePath() == draftLocation)
968 && (info.baseName().startsWith(draftName)));
969}
970
971void DocumentManagerPrivate::createDraft()
972{

Callers 2

saveFileMethod · 0.80
saveAsMethod · 0.80

Calls 2

isNewMethod · 0.80
filePathMethod · 0.45

Tested by

no test coverage detected