[vlmc-devel] [PATCH] Fix "disconnect"
Yikai Lu
luyikei.qmltu at gmail.com
Mon Apr 4 13:07:10 CEST 2016
FIXME: metaDataComputed in Media class has no arguments, this shouldn't be working; replacing this with disconnect( media, &Media::metaDataComputed, this, &Library::mediaLoaded ); produces static_assert error
---
src/Library/Library.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
index db5e2bf..b7d0592 100644
--- a/src/Library/Library.cpp
+++ b/src/Library/Library.cpp
@@ -113,13 +113,8 @@ void
Library::mediaLoaded( const Media* media )
{
if ( media != nullptr )
- {
- //FIXME: metaDataComputed in Media class has no arguments, this shouldn't be working;
- //replacing this with disconnect( media, &Media::metaDataComputed, this, &Library::mediaLoaded );
- //produces static_assert error
- disconnect( media, SIGNAL( metaDataComputed( const Media* ) ),
+ disconnect( media, SIGNAL( metaDataComputed() ),
this, SLOT( mediaLoaded( const Media* ) ) );
- }
if (m_nbMediaToLoad.fetchAndAddAcquire( -1 ) == 1)
emit projectLoaded();
}
--
1.9.1
More information about the Vlmc-devel
mailing list