mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
show editor first before beginEdit()
This commit is contained in:
parent
d49433f91d
commit
23cae5a68c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user