diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 36b6b74224..0b8f69fb3a 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -277,8 +277,6 @@ struct GuiView::GuiViewPrivate if (preview_watcher_.isRunning()) preview_watcher_.waitForFinished(); preview_watcher_.setFuture(f); - connect(&preview_watcher_, SIGNAL(finished()), gv_, - SLOT(threadFinished())); } #endif @@ -374,6 +372,8 @@ GuiView::GuiView(int id) #if (QT_VERSION >= 0x040400) connect(&d.autosave_watcher_, SIGNAL(finished()), this, SLOT(threadFinished())); + connect(&d.preview_watcher_, SIGNAL(finished()), this, + SLOT(threadFinished())); #endif connect(this, SIGNAL(triggerShowDialog(QString const &, QString const &, Inset *)),