From 1234e3e670a692d185d2068f92cb60767762b561 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Wed, 2 May 2012 21:49:46 +0200 Subject: [PATCH] screen shot when invisible bug fixed --- src/customWidgets/UBMediaWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/customWidgets/UBMediaWidget.cpp b/src/customWidgets/UBMediaWidget.cpp index 67a20ad7..f0def3ff 100644 --- a/src/customWidgets/UBMediaWidget.cpp +++ b/src/customWidgets/UBMediaWidget.cpp @@ -199,7 +199,7 @@ void UBMediaWidget::adaptSizeToVideo() void UBMediaWidget::updateView(Phonon::State nextState) { - if(eMediaType_Video == mType){ + if(isVisible() && eMediaType_Video == mType){ if(nextState != Phonon::PlayingState){ const QPixmap& snapshot = QPixmap::grabWindow(mpVideoWidget->winId()); mpSnapshotVideoWidget->setPixmap(snapshot);