Commit 76fde4fb authored by Anne-Marie Mahfouf's avatar Anne-Marie Mahfouf
Browse files

fix dropping formatted text

Thanks to rshah for the patch

BUG:272495
parent c79d151d
......@@ -137,7 +137,7 @@ Notes::Notes(QObject *parent, const QVariantList &args)
if (f.open(QIODevice::ReadOnly)) {
QTextStream t(&f);
m_noteEditor->setHtml(t.readAll());
m_noteEditor->setTextOrHtml(t.readAll());
QTimer::singleShot(1000, this, SLOT(saveNote()));
f.close();
}
......@@ -233,6 +233,7 @@ void Notes::configChanged()
updateTextGeometry();
// make sure changes to the background colour take effect immediately
kDebug() << "########## ";
update();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment