forked from qt-creator/qt-creator
Add function for getting DiffService
Hides the implementation detail that this is fetched from the object pool from most places. Change-Id: I0ea06c877fade50f62b62011bbc0d2f89fa8e885 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -55,7 +55,7 @@ SaveItemsDialog::SaveItemsDialog(QWidget *parent,
|
||||
const QDialogButtonBox::ButtonRole discardButtonRole = Utils::HostOsInfo::isMacHost()
|
||||
? QDialogButtonBox::ResetRole : QDialogButtonBox::DestructiveRole;
|
||||
|
||||
if (ExtensionSystem::PluginManager::getObject<Core::DiffService>()) {
|
||||
if (DiffService::instance()) {
|
||||
m_diffButton = m_ui.buttonBox->addButton(tr("&Diff"), discardButtonRole);
|
||||
connect(m_diffButton, &QAbstractButton::clicked, this, &SaveItemsDialog::collectFilesToDiff);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user