Git commit 48aad7e20249c3160c97c7536bf18adca3ed7788 by Jan Kundr?t. Committed on 09/08/2013 at 17:44. Pushed by jkt into branch 'master'.
GUI: disable clickthrough when online or when message parts are small enough anyway M +5 -0 src/Gui/PartWidgetFactory.cpp http://commits.kde.org/trojita/48aad7e20249c3160c97c7536bf18adca3ed7788 diff --git a/src/Gui/PartWidgetFactory.cpp b/src/Gui/PartWidgetFactory.cpp index 1f70969..1a0fcaf 100644 --- a/src/Gui/PartWidgetFactory.cpp +++ b/src/Gui/PartWidgetFactory.cpp @@ -126,6 +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); + + // This makes sure that clickthrough only affects big parts during "expensive network" mode + if (model->isNetworkOnline() || part->octets() <= ExpensiveFetchThreshold) { + options |= PART_IGNORE_CLICKTHROUGH; + } } else { // A compound type -> make sure we disable clickthrough options |= PART_IGNORE_CLICKTHROUGH;
