Git commit 56d0eccb1c35b8a78b2b723f3c315c15d64bbbfd by Jan Kundr?t.
Committed on 08/08/2013 at 12:23.
Pushed by jkt into branch 'master'.

GUI: disable clickthrough for compound types

Previously, inlined compound types (like message/rfc822) required a clickthrough
before they were shown.

M  +4    -0    src/Gui/PartWidgetFactory.cpp

http://commits.kde.org/trojita/56d0eccb1c35b8a78b2b723f3c315c15d64bbbfd

diff --git a/src/Gui/PartWidgetFactory.cpp b/src/Gui/PartWidgetFactory.cpp
index 6808d17..1f70969 100644
--- a/src/Gui/PartWidgetFactory.cpp
+++ b/src/Gui/PartWidgetFactory.cpp
@@ -126,7 +126,11 @@ QWidget *PartWidgetFactory::create(const QModelIndex 
&partIndex, int recursionDe
             } else if (!isCompoundMimeType) {
                 // This is to prevent a clickthrough when the data can be 
already shown
                 part->fetchFromCache(model);
+            } else {
+                // A compound type -> make sure we disable clickthrough
+                options |= PART_IGNORE_CLICKTHROUGH;
             }
+
             if (!model->isNetworkAvailable()) {
                 // This is to prevent a clickthrough when offline
                 options |= PART_IGNORE_CLICKTHROUGH;

Reply via email to