forked from qt-creator/qt-creator
ProjectExplorer: Do not emit notifications from Kit::copyFrom()
This function is a building block for other operations. Emitting a signal from it will likely provide subscribers with invalid state. Fixes: QTCREATORBUG-22628 Change-Id: I975638dfa3b453a54c747186b0f6b834c02be035 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -228,13 +228,11 @@ Kit *Kit::clone(bool keepName) const
|
||||
|
||||
void Kit::copyFrom(const Kit *k)
|
||||
{
|
||||
KitGuard g(this);
|
||||
copyKitCommon(this, k);
|
||||
d->m_autodetected = k->d->m_autodetected;
|
||||
d->m_autoDetectionSource = k->d->m_autoDetectionSource;
|
||||
d->m_unexpandedDisplayName = k->d->m_unexpandedDisplayName;
|
||||
d->m_fileSystemFriendlyName = k->d->m_fileSystemFriendlyName;
|
||||
d->m_mustNotify = true;
|
||||
}
|
||||
|
||||
bool Kit::isValid() const
|
||||
|
Reference in New Issue
Block a user