Skip to content

Commit

Permalink
ItemText: Don't save HTML and rich text if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed May 30, 2013
1 parent 3d623cb commit 5a54f05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/itemtext/itemtext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ ItemWidget *ItemTextLoader::create(const QModelIndex &index, QWidget *parent) co

QStringList ItemTextLoader::formatsToSave() const
{
return QStringList("text/plain") << QString("text/html") << QString("text/richtext");
return m_settings.value("use_rich_text", true).toBool()
? QStringList("text/plain") << QString("text/html") << QString("text/richtext")
: QStringList("text/plain");
}

QVariantMap ItemTextLoader::applySettings()
Expand Down

0 comments on commit 5a54f05

Please sign in to comment.