forked from qt-creator/qt-creator
Bazaar: Make create repository a global action
Also initialize text of parameter actions when defining the parameter action. Avoids empty items if the setParameter() call is done too late. Change-Id: I5e3398e5e537fc65f5c9c43cd62345b322f3143d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -507,7 +507,6 @@ BazaarPluginPrivate::BazaarPluginPrivate()
|
||||
|
||||
ActionBuilder createRepository(this, CREATE_REPOSITORY);
|
||||
createRepository.setText(Tr::tr("Create Repository..."));
|
||||
createRepository.setContext(context);
|
||||
createRepository.setContainer(bazaarMenuId);
|
||||
createRepository.setOnTriggered(this, [this] { this->createRepository(); });
|
||||
|
||||
|
@@ -227,6 +227,7 @@ void ActionBuilder::setParameterText(const QString ¶meterText,
|
||||
d->action->setEnablingMode(mode == AlwaysEnabled
|
||||
? ParameterAction::AlwaysEnabled
|
||||
: ParameterAction::EnabledWithParameter);
|
||||
d->action->setText(emptyText);
|
||||
}
|
||||
|
||||
Command *ActionBuilder::command() const
|
||||
|
Reference in New Issue
Block a user