forked from qt-creator/qt-creator
Bazaar: set global Bazaar user ID when changed
This ID is automatically set when the user settings have been changed and applied from the "Options" dialog. This calls 'bzr whoami' under the hood Merge-request: 275 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -205,7 +205,10 @@ const BazaarSettings &BazaarPlugin::settings() const
|
||||
void BazaarPlugin::setSettings(const BazaarSettings &settings)
|
||||
{
|
||||
if (settings != m_bazaarSettings) {
|
||||
m_bazaarSettings = settings;
|
||||
const bool userIdChanged = !m_bazaarSettings.sameUserId(settings);
|
||||
m_bazaarSettings = settings;
|
||||
if (userIdChanged)
|
||||
client()->synchronousSetUserId();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user