Commit e94e6249 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: avoid warnings (connections)

parent f816f173
......@@ -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;
connect(currentDesignDocumentController(), SIGNAL(undoAvailable(bool)),
if (currentDesignDocumentController()) {
connect(currentDesignDocumentController(), SIGNAL(undoAvailable(bool)),
this, SLOT(undoAvailable(bool)));
connect(currentDesignDocumentController(), SIGNAL(redoAvailable(bool)),
connect(currentDesignDocumentController(), SIGNAL(redoAvailable(bool)),
this, SLOT(redoAvailable(bool)));
}
if (m_currentDesignDocumentController) {
......
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