Git commit 4ae64adf7de4a47e40c24bbd16d5f651a7515d7a by Jan Kundr?t.
Committed on 04/08/2013 at 21:32.
Pushed by jkt into branch 'master'.

GUI: unify handling of parts when offline

The code which presents an error to the user is already implemented, so let's
use it instead of an ad-hoc sine telling "offline".

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

http://commits.kde.org/trojita/4ae64adf7de4a47e40c24bbd16d5f651a7515d7a

diff --git a/src/Gui/PartWidgetFactory.cpp b/src/Gui/PartWidgetFactory.cpp
index ca1f33e..437a5ae 100644
--- a/src/Gui/PartWidgetFactory.cpp
+++ b/src/Gui/PartWidgetFactory.cpp
@@ -177,13 +177,11 @@ 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() || part->fetched()) {
+            } else {
                 widget = new LoadablePartWidget(0, manager, partIndex, 
m_messageView,
                                                 loadingMode == LOAD_ON_SHOW && 
part->octets() <= ExpensiveFetchThreshold ?
                                                     
LoadablePartWidget::LOAD_ON_SHOW :
                                                     
LoadablePartWidget::LOAD_ON_CLICK);
-            } else {
-                widget = new QLabel(tr("Offline"), 0);
             }
             return widget;
         } else {

Reply via email to