fix: changing the insert into query html for plain text
This commit is contained in:
parent
9180946916
commit
3d23aeb224
|
|
@ -58,7 +58,7 @@ void Widget::addRecord()
|
||||||
query.prepare("INSERT INTO public.random_data (name, text) "
|
query.prepare("INSERT INTO public.random_data (name, text) "
|
||||||
"VALUES (?, ?)");
|
"VALUES (?, ?)");
|
||||||
query.addBindValue(_nameEdit->displayText());
|
query.addBindValue(_nameEdit->displayText());
|
||||||
query.addBindValue(_textEdit->toHtml());
|
query.addBindValue(_textEdit->toPlainText());
|
||||||
if (!query.exec()) {
|
if (!query.exec()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue