fix: new editor not correctly add to the editorlist

This commit is contained in:
royqh1979 2021-10-20 18:16:10 +08:00
parent 5c9ef2035e
commit 4eec5cafb8
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ Editor::Editor(QWidget *parent, const QString& filename,
}
QFileInfo fileInfo(mFilename);
if (mParentPageControl!=nullptr) {
mParentPageControl->addTab(this,"");
updateCaption();
}