[companion] Default category on new file was added at the wrong place and also created when reading form radio
This commit is contained in:
@@ -543,6 +543,10 @@ void MainWindow::newFile()
|
|||||||
{
|
{
|
||||||
MdiChild * child = createMdiChild();
|
MdiChild * child = createMdiChild();
|
||||||
child->newFile();
|
child->newFile();
|
||||||
|
|
||||||
|
if (IS_HORUS(getCurrentBoard())) {
|
||||||
|
child->categoryAdd();
|
||||||
|
}
|
||||||
child->show();
|
child->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -597,10 +597,6 @@ void MdiChild::newFile()
|
|||||||
isUntitled = true;
|
isUntitled = true;
|
||||||
curFile = QString("document%1.otx").arg(sequenceNumber++);
|
curFile = QString("document%1.otx").arg(sequenceNumber++);
|
||||||
updateTitle();
|
updateTitle();
|
||||||
|
|
||||||
if (IS_HORUS(getCurrentBoard())) {
|
|
||||||
categoryAdd();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MdiChild::loadFile(const QString & filename, bool resetCurrentFile)
|
bool MdiChild::loadFile(const QString & filename, bool resetCurrentFile)
|
||||||
|
|||||||
Reference in New Issue
Block a user