diff options
| author | Kai Uwe Broulik <[email protected]> | 2017-08-25 16:48:48 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2017-08-25 16:48:48 +0200 |
| commit | dfbaf21218c7a96dd7b7d1c4275820cd94c920f5 (patch) | |
| tree | 9658017df600c2bf6222104ff35259cf71675f7a | |
| parent | 3bfdf0d2f043a5891649c4d817d367dd4718d888 (diff) | |
[AdditionalInfoDialog] Prevent hiding "text" role
You cannot do this from the menu but the option was there (but ignored) in the "View Properties" dialog.
BUG: 302622
Differential Revision: https://phabricator.kde.org/D7386
| -rw-r--r-- | src/settings/additionalinfodialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings/additionalinfodialog.cpp b/src/settings/additionalinfodialog.cpp index 23a65b5ac..4589b5d44 100644 --- a/src/settings/additionalinfodialog.cpp +++ b/src/settings/additionalinfodialog.cpp @@ -69,9 +69,9 @@ AdditionalInfoDialog::AdditionalInfoDialog(QWidget* parent, QListWidgetItem* item = new QListWidgetItem(info.translation, m_listWidget); item->setCheckState(visibleRoles.contains(info.role) ? Qt::Checked : Qt::Unchecked); - const bool enable = (!info.requiresBaloo && !info.requiresIndexer) || + const bool enable = ((!info.requiresBaloo && !info.requiresIndexer) || (info.requiresBaloo) || - (info.requiresIndexer && indexingEnabled); + (info.requiresIndexer && indexingEnabled)) && info.role != "text"; if (!enable) { item->setFlags(item->flags() & ~Qt::ItemIsEnabled); |
