From 00bb64772145f81c2561a598f7023134d041ba55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sun, 27 Dec 2009 10:03:16 +0000 Subject: [PATCH] no duplicated success messages: one connection is enough git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32653 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 *)),