瀏覽代碼

small fix

- Outline viewer;
- Import legacy notebook;
Le Tan 4 年之前
父節點
當前提交
db3139e97d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/widgets/dialogs/importlegacynotebookdialog.cpp
  2. 1 1
      src/widgets/outlineviewer.cpp

+ 1 - 1
src/widgets/dialogs/importlegacynotebookdialog.cpp

@@ -38,7 +38,7 @@ void ImportLegacyNotebookDialog::acceptedButtonClicked()
                                                  QString(),
                                                  tr("Welcome to VNoteX and the new VNote!"),
                                                  this);
-    if (ret && importLegacyNotebook()) {
+    if (ret == QMessageBox::Ok && importLegacyNotebook()) {
         accept();
         return;
     }

+ 1 - 1
src/widgets/outlineviewer.cpp

@@ -165,7 +165,6 @@ void OutlineViewer::showEvent(QShowEvent *p_event)
 
 void OutlineViewer::updateOutline(const QSharedPointer<Outline> &p_outline)
 {
-    m_muted = true;
     if (!p_outline) {
         if (m_outline.isEmpty()) {
             return;
@@ -178,6 +177,7 @@ void OutlineViewer::updateOutline(const QSharedPointer<Outline> &p_outline)
         m_outline = *p_outline;
     }
 
+    m_muted = true;
     updateTreeToOutline(m_tree, m_outline);
 
     expandTree(m_autoExpandedLevel);