Commit 1234e3e6 authored by Claudio Valerio's avatar Claudio Valerio

screen shot when invisible bug fixed

parent 8ee02a4b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment