show editor first before beginEdit()

This commit is contained in:
Le Tan 2017-12-04 20:37:17 +08:00
parent d49433f91d
commit 23cae5a68c

View File

@ -202,8 +202,8 @@ void VMdTab::showFileEditMode()
VMdEditor *mdEdit = getEditor(); VMdEditor *mdEdit = getEditor();
mdEdit->beginEdit();
m_stacks->setCurrentWidget(mdEdit); m_stacks->setCurrentWidget(mdEdit);
mdEdit->beginEdit();
// If editor is not init, we need to wait for it to init headers. // If editor is not init, we need to wait for it to init headers.
// Generally, beginEdit() will generate the headers. Wait is needed when // Generally, beginEdit() will generate the headers. Wait is needed when