diff --git a/src/plugins/git/changeselectiondialog.cpp b/src/plugins/git/changeselectiondialog.cpp index 114e9effcf3c6d573c72e16539f456c9559b56f0..48a0fdec18ccb91946ed8d72a58fd1fce16fb82c 100644 --- a/src/plugins/git/changeselectiondialog.cpp +++ b/src/plugins/git/changeselectiondialog.cpp @@ -56,7 +56,7 @@ ChangeSelectionDialog::ChangeSelectionDialog(const QString &workingDirectory, QW , m_cherryPickButton(new QPushButton(tr("Cherry &Pick"), this)) , m_revertButton(new QPushButton(tr("&Revert"), this)) , m_checkoutButton(new QPushButton(tr("Check&out"), this)) - , m_cancelButton(new QPushButton(tr("&Cancel"), this)) + , m_closeButton(new QPushButton(tr("&Close"), this)) , m_detailsText(new QPlainTextEdit(this)) , m_command(NoCommand) { @@ -75,7 +75,7 @@ ChangeSelectionDialog::ChangeSelectionDialog(const QString &workingDirectory, QW layout->addWidget(m_detailsText, 2, 0, 1, 3); QHBoxLayout* buttonsLine = new QHBoxLayout(); - buttonsLine->addWidget(m_cancelButton); + buttonsLine->addWidget(m_closeButton); buttonsLine->addStretch(); buttonsLine->addWidget(m_checkoutButton); buttonsLine->addWidget(m_revertButton); @@ -105,7 +105,7 @@ ChangeSelectionDialog::ChangeSelectionDialog(const QString &workingDirectory, QW connect(m_cherryPickButton, SIGNAL(clicked()), this, SLOT(acceptCherryPick())); connect(m_revertButton, SIGNAL(clicked()), this, SLOT(acceptRevert())); connect(m_checkoutButton, SIGNAL(clicked()), this, SLOT(acceptCheckout())); - connect(m_cancelButton, SIGNAL(clicked()), this, SLOT(reject())); + connect(m_closeButton, SIGNAL(clicked()), this, SLOT(reject())); recalculateDetails(); } diff --git a/src/plugins/git/changeselectiondialog.h b/src/plugins/git/changeselectiondialog.h index 3556b088e8bf2ed3dc05f4105cc2d882ed6dffb1..e850570369b292b0dd41019b0f1714619b449618 100644 --- a/src/plugins/git/changeselectiondialog.h +++ b/src/plugins/git/changeselectiondialog.h @@ -89,7 +89,7 @@ private: QPushButton *m_cherryPickButton; QPushButton *m_revertButton; QPushButton *m_checkoutButton; - QPushButton *m_cancelButton; + QPushButton *m_closeButton; QPlainTextEdit *m_detailsText; ChangeCommand m_command;