diff --git a/src/Gui/Thumbnail.cpp b/src/Gui/Thumbnail.cpp index ac0962e155..b6a68f82ac 100644 --- a/src/Gui/Thumbnail.cpp +++ b/src/Gui/Thumbnail.cpp @@ -86,16 +86,14 @@ void Thumbnail::SaveDocFile (Base::Writer &writer) const if (!this->viewer) return; QImage img; - if (this->viewer->isActiveWindow()) { - if (this->viewer->thread() != QThread::currentThread()) { - qWarning("Cannot create a thumbnail from non-GUI thread"); - return; - } - - QColor invalid; - this->viewer->imageFromFramebuffer(this->size, this->size, 4, invalid, img); + if (this->viewer->thread() != QThread::currentThread()) { + qWarning("Cannot create a thumbnail from non-GUI thread"); + return; } + QColor invalid; + this->viewer->imageFromFramebuffer(this->size, this->size, 4, invalid, img); + // Get app icon and resize to half size to insert in topbottom position over the current view snapshot QPixmap appIcon = Gui::BitmapFactory().pixmap(App::Application::Config()["AppIcon"].c_str()); QPixmap px = appIcon;