forked from qt-creator/qt-creator
Core: Clean up some ICore::instance() uses
Change-Id: I888b30094ed75818ee3af58c94ebf8468afa5eb9 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -273,7 +273,7 @@ GerritPlugin::~GerritPlugin()
|
||||
|
||||
bool GerritPlugin::initialize(ActionContainer *ac)
|
||||
{
|
||||
m_parameters->fromSettings(ICore::instance()->settings());
|
||||
m_parameters->fromSettings(ICore::settings());
|
||||
|
||||
QAction *openViewAction = new QAction(tr("Gerrit..."), this);
|
||||
|
||||
@@ -364,7 +364,7 @@ void GerritPlugin::openView()
|
||||
QMessageBox::warning(0, tr("Error"),
|
||||
tr("Invalid Gerrit configuration. Host, user and ssh binary are mandatory."));
|
||||
const Id group = VcsBase::Constants::VCS_SETTINGS_CATEGORY;
|
||||
if (!ICore::instance()->showOptionsDialog(group, "Gerrit"))
|
||||
if (!ICore::showOptionsDialog(group, "Gerrit"))
|
||||
return;
|
||||
}
|
||||
GerritDialog *gd = new GerritDialog(m_parameters, ICore::mainWindow());
|
||||
|
||||
Reference in New Issue
Block a user