[companion] Add first category automatically when creating a new Horus file

This commit is contained in:
Andre Bernet
2017-03-04 22:56:21 +01:00
parent 8bced60784
commit 8e3f86383c
+4
View File
@@ -560,6 +560,10 @@ void MdiChild::newFile()
isUntitled = true;
curFile = QString("document%1.otx").arg(sequenceNumber++);
updateTitle();
if (IS_HORUS(getCurrentBoard())) {
categoryAdd();
}
}
bool MdiChild::loadFile(const QString & filename, bool resetCurrentFile)