From b4c1e68eb4da2a7859d70f399a1ee69659cd2f28 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 8 Sep 2015 16:10:37 +0300 Subject: [PATCH] Correct reading notes. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 115ffb509..b0c6763cc 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1469,7 +1469,6 @@ void TMainWindow::InitWindow() ui->dateEditBirthDate->setDate(m->BirthDate()); ui->lineEditEmail->setText(m->Email()); - ui->plainTextEditNotes->setPlainText(m->Notes()); connect(ui->lineEditGivenName, &QLineEdit::editingFinished, this, &TMainWindow::SaveGivenName); connect(ui->lineEditFamilyName, &QLineEdit::editingFinished, this, &TMainWindow::SaveFamilyName); @@ -1477,7 +1476,6 @@ void TMainWindow::InitWindow() connect(ui->comboBoxSex, static_cast(&QComboBox::currentIndexChanged), this, &TMainWindow::SaveSex); connect(ui->dateEditBirthDate, &QDateEdit::dateChanged, this, &TMainWindow::SaveBirthDate); - connect(ui->plainTextEditNotes, &QPlainTextEdit::textChanged, this, &TMainWindow::SaveNotes); connect(ui->pushButtonGrow, &QPushButton::clicked, this, &TMainWindow::DeployFormula); this->formulaBaseHeight = ui->plainTextEditFormula->height(); @@ -1487,6 +1485,9 @@ void TMainWindow::InitWindow() connect(ui->toolButtonExpr, &QToolButton::clicked, this, &TMainWindow::Fx); } + ui->plainTextEditNotes->setPlainText(m->Notes()); + connect(ui->plainTextEditNotes, &QPlainTextEdit::textChanged, this, &TMainWindow::SaveNotes); + ui->actionAddCustom->setEnabled(true); ui->actionAddKnown->setEnabled(true); ui->actionImportFromPattern->setEnabled(true);