Add missing added/closing signal forwarding in document strategies

parent 6df39299
......@@ -51,6 +51,10 @@ void MultiDocumentStrategyPrivate::init()
mViewManager, &ViewManager::createViewsFor );
QObject::connect( mDocumentManager, &DocumentManager::closing,
mViewManager, &ViewManager::removeViewsFor );
QObject::connect( mDocumentManager, &DocumentManager::added,
q, &MultiDocumentStrategy::added );
QObject::connect( mDocumentManager, &DocumentManager::closing,
q, &MultiDocumentStrategy::closing );
QObject::connect( mDocumentManager->syncManager(), &DocumentSyncManager::urlUsed,
q, &MultiDocumentStrategy::urlUsed );
}
......
......@@ -54,6 +54,10 @@ void SingleDocumentStrategyPrivate::init()
mViewManager, &ViewManager::createViewsFor );
QObject::connect( mDocumentManager, &DocumentManager::closing,
mViewManager, &ViewManager::removeViewsFor );
QObject::connect( mDocumentManager, &DocumentManager::added,
q, &SingleDocumentStrategy::added );
QObject::connect( mDocumentManager, &DocumentManager::closing,
q, &SingleDocumentStrategy::closing );
QObject::connect( mDocumentManager->syncManager(), &DocumentSyncManager::urlUsed,
q, &SingleDocumentStrategy::urlUsed );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment