[vlmc-devel] MainWindow: Fix connection

Yikai Lu git at videolan.org
Sat Jun 24 12:49:43 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jun 21 22:07:25 2017 +0900| [8bdd3af8d4a505e2a9f9220356f5d8c666670dfb] | committer: Yikai Lu

MainWindow: Fix connection

> https://code.videolan.org/videolan/vlmc/commit/8bdd3af8d4a505e2a9f9220356f5d8c666670dfb
---

 src/Gui/MainWindow.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index e1161e55..21c69f06 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -524,8 +524,8 @@ MainWindow::setupClipPreview()
     auto renderer = new ClipRenderer;
     renderer->setParent( m_clipPreview );
     m_clipPreview->setRenderer( renderer );
-    connect( Core::instance()->library(), SIGNAL( clipRemoved( const QUuid& ) ),
-             renderer, SLOT( clipUnloaded( const QUuid& ) ) );
+    connect( Core::instance()->library(), &Library::clipRemoved,
+             renderer, &ClipRenderer::clipUnloaded );
     connect( m_clipLibrary, &ClipLibraryView::clipSelected, renderer, [renderer]( const QString& uuid )
     {
         renderer->setClip( Core::instance()->library()->clip( uuid ).data() );



More information about the Vlmc-devel mailing list