forked from qt-creator/qt-creator
QmlDesigner: avoid warnings (connections)
This commit is contained in:
@@ -451,16 +451,16 @@ void DesignModeWidget::setCurrentDocument(DesignDocumentController *newDesignDoc
|
||||
this, SLOT(undoAvailable(bool)));
|
||||
disconnect(currentDesignDocumentController(), SIGNAL(redoAvailable(bool)),
|
||||
this, SLOT(redoAvailable(bool)));
|
||||
disconnect(currentDesignDocumentController(), SIGNAL(deleteAvailable(bool)),
|
||||
this, SLOT(deleteAvailable(bool)));
|
||||
}
|
||||
|
||||
m_currentDesignDocumentController = newDesignDocumentController;
|
||||
|
||||
if (currentDesignDocumentController()) {
|
||||
connect(currentDesignDocumentController(), SIGNAL(undoAvailable(bool)),
|
||||
this, SLOT(undoAvailable(bool)));
|
||||
connect(currentDesignDocumentController(), SIGNAL(redoAvailable(bool)),
|
||||
this, SLOT(redoAvailable(bool)));
|
||||
}
|
||||
|
||||
if (m_currentDesignDocumentController) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user