From c6f2c32830784ff72115e7e8a9db312b4251f914 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 7 Jun 2012 11:37:06 +0200 Subject: [PATCH] make a workaround because we receive always two notifications instead of one --- src/domain/UBAbstractWidget.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/domain/UBAbstractWidget.cpp b/src/domain/UBAbstractWidget.cpp index 8832317b..dc9ac1b6 100644 --- a/src/domain/UBAbstractWidget.cpp +++ b/src/domain/UBAbstractWidget.cpp @@ -405,12 +405,14 @@ void UBAbstractWidget::paintEvent(QPaintEvent * event) else { QPainter p(this); - QString message; - - if (mLoadIsErronous) - message = tr("Cannot load content"); - else - message = tr("Loading ..."); + QString message = tr("Loading ..."); + + // this is the right way of doing but we receive two callback and the one return always that the + // load as failed... to check +// if (mLoadIsErronous) +// message = tr("Cannot load content"); +// else +// message = tr("Loading ..."); p.setFont(QFont("Arial", 12));