mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +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(),
|
QString(),
|
||||||
tr("Welcome to VNoteX and the new VNote!"),
|
tr("Welcome to VNoteX and the new VNote!"),
|
||||||
this);
|
this);
|
||||||
if (ret && importLegacyNotebook()) {
|
if (ret == QMessageBox::Ok && importLegacyNotebook()) {
|
||||||
accept();
|
accept();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,6 @@ void OutlineViewer::showEvent(QShowEvent *p_event)
|
|||||||
|
|
||||||
void OutlineViewer::updateOutline(const QSharedPointer<Outline> &p_outline)
|
void OutlineViewer::updateOutline(const QSharedPointer<Outline> &p_outline)
|
||||||
{
|
{
|
||||||
m_muted = true;
|
|
||||||
if (!p_outline) {
|
if (!p_outline) {
|
||||||
if (m_outline.isEmpty()) {
|
if (m_outline.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
@ -178,6 +177,7 @@ void OutlineViewer::updateOutline(const QSharedPointer<Outline> &p_outline)
|
|||||||
m_outline = *p_outline;
|
m_outline = *p_outline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_muted = true;
|
||||||
updateTreeToOutline(m_tree, m_outline);
|
updateTreeToOutline(m_tree, m_outline);
|
||||||
|
|
||||||
expandTree(m_autoExpandedLevel);
|
expandTree(m_autoExpandedLevel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user