Browse Source

show editor first before beginEdit()

Le Tan 8 years ago
parent
commit
23cae5a68c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/vmdtab.cpp

+ 1 - 1
src/vmdtab.cpp

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