mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
small fix
- Outline viewer; - Import legacy notebook;
This commit is contained in:
parent
c95e850bb1
commit
db3139e97d
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user