Correct reading notes.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-09-08 16:10:37 +03:00
parent aa0596ab06
commit b4c1e68eb4

View File

@ -1469,7 +1469,6 @@ void TMainWindow::InitWindow()
ui->dateEditBirthDate->setDate(m->BirthDate()); ui->dateEditBirthDate->setDate(m->BirthDate());
ui->lineEditEmail->setText(m->Email()); ui->lineEditEmail->setText(m->Email());
ui->plainTextEditNotes->setPlainText(m->Notes());
connect(ui->lineEditGivenName, &QLineEdit::editingFinished, this, &TMainWindow::SaveGivenName); connect(ui->lineEditGivenName, &QLineEdit::editingFinished, this, &TMainWindow::SaveGivenName);
connect(ui->lineEditFamilyName, &QLineEdit::editingFinished, this, &TMainWindow::SaveFamilyName); connect(ui->lineEditFamilyName, &QLineEdit::editingFinished, this, &TMainWindow::SaveFamilyName);
@ -1477,7 +1476,6 @@ void TMainWindow::InitWindow()
connect(ui->comboBoxSex, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, connect(ui->comboBoxSex, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
&TMainWindow::SaveSex); &TMainWindow::SaveSex);
connect(ui->dateEditBirthDate, &QDateEdit::dateChanged, this, &TMainWindow::SaveBirthDate); connect(ui->dateEditBirthDate, &QDateEdit::dateChanged, this, &TMainWindow::SaveBirthDate);
connect(ui->plainTextEditNotes, &QPlainTextEdit::textChanged, this, &TMainWindow::SaveNotes);
connect(ui->pushButtonGrow, &QPushButton::clicked, this, &TMainWindow::DeployFormula); connect(ui->pushButtonGrow, &QPushButton::clicked, this, &TMainWindow::DeployFormula);
this->formulaBaseHeight = ui->plainTextEditFormula->height(); this->formulaBaseHeight = ui->plainTextEditFormula->height();
@ -1487,6 +1485,9 @@ void TMainWindow::InitWindow()
connect(ui->toolButtonExpr, &QToolButton::clicked, this, &TMainWindow::Fx); 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->actionAddCustom->setEnabled(true);
ui->actionAddKnown->setEnabled(true); ui->actionAddKnown->setEnabled(true);
ui->actionImportFromPattern->setEnabled(true); ui->actionImportFromPattern->setEnabled(true);