Git commit 2aa06b0db277e42e79d92193b3726c7ee43a6265 by Jan Kundr?t. Committed on 19/06/2013 at 15:21. Pushed by jkt into branch 'master'.
GUI: enable loading of cached items not immediately shown when offline Previously, the second part of a multipart/alternative (i.e. something which is not shown on startup) was replaced by a label showing "Offline" even though the actual data were available in the cache. That was not correct. M +1 -1 src/Gui/PartWidgetFactory.cpp http://commits.kde.org/trojita/2aa06b0db277e42e79d92193b3726c7ee43a6265 diff --git a/src/Gui/PartWidgetFactory.cpp b/src/Gui/PartWidgetFactory.cpp index 4ebf5bd..9427c7d 100644 --- a/src/Gui/PartWidgetFactory.cpp +++ b/src/Gui/PartWidgetFactory.cpp @@ -154,7 +154,7 @@ QWidget *PartWidgetFactory::create(const QModelIndex &partIndex, int recursionDe QWidget *widget = 0; if (showDirectly) { widget = new SimplePartWidget(0, manager, partIndex, m_messageView); - } else if (model->isNetworkAvailable()) { + } else if (model->isNetworkAvailable() || part->fetched()) { widget = new LoadablePartWidget(0, manager, partIndex, m_messageView, loadingMode == LOAD_ON_SHOW && part->octets() <= ExpensiveFetchThreshold ? LoadablePartWidget::LOAD_ON_SHOW :
