[kde-doc-english] [trojita] src/Gui: GUI: prefer plaintext rendering by default

Jan Kundrát jkt at flaska.net
Thu Jan 31 20:43:04 UTC 2013


Git commit 3d7391bc9e247b34e53cd549cd5d825e330ba98d by Jan Kundrát.
Committed on 31/01/2013 at 21:41.
Pushed by jkt into branch 'master'.

GUI: prefer plaintext rendering by default

This is because I like the quote collapsing too much to ignore it and one cannot
really do the same with 3rd-party HTML.

M  +1    -1    src/Gui/PartWidgetFactory.cpp

http://commits.kde.org/trojita/3d7391bc9e247b34e53cd549cd5d825e330ba98d

diff --git a/src/Gui/PartWidgetFactory.cpp b/src/Gui/PartWidgetFactory.cpp
index 01fe437..e21f241 100644
--- a/src/Gui/PartWidgetFactory.cpp
+++ b/src/Gui/PartWidgetFactory.cpp
@@ -62,7 +62,7 @@ QWidget *PartWidgetFactory::create(const QModelIndex &partIndex, int recursionDe
                              "the top-most thousand items or so are shown."), 0);
     }
 
-    bool userPrefersPlaintext = QSettings().value(Common::SettingsNames::guiPreferPlaintextRendering).toBool();
+    bool userPrefersPlaintext = QSettings().value(Common::SettingsNames::guiPreferPlaintextRendering, QVariant(true)).toBool();
 
     QString mimeType = partIndex.data(Imap::Mailbox::RolePartMimeType).toString();
     if (mimeType.startsWith(QLatin1String("multipart/"))) {


More information about the kde-doc-english mailing list