Skip to content
Snippets Groups Projects
Commit 11fb6d1c authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Git: Rename "reset" back to "undo uncomitted changes"

Rename "Reset..." back to "Undo Uncommitted Changes..." to be more
in line with git gui as well as the file-based operations.

Reviewed-by: Leena Miettinen
parent e419119b
No related branches found
No related tags found
No related merge requests found
...@@ -402,7 +402,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage) ...@@ -402,7 +402,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
globalcontext, true, &GitClient::status); globalcontext, true, &GitClient::status);
createRepositoryAction(actionManager, gitContainer, createRepositoryAction(actionManager, gitContainer,
tr("Reset..."), QLatin1String("Git.UndoRepository"), tr("Undo Uncommited Changes..."), QLatin1String("Git.UndoRepository"),
globalcontext, false, SLOT(undoRepositoryChanges())); globalcontext, false, SLOT(undoRepositoryChanges()));
...@@ -622,10 +622,10 @@ void GitPlugin::undoRepositoryChanges() ...@@ -622,10 +622,10 @@ void GitPlugin::undoRepositoryChanges()
{ {
const VCSBase::VCSBasePluginState state = currentState(); const VCSBase::VCSBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return) QTC_ASSERT(state.hasTopLevel(), return)
const QString msg = tr("Revert all pending changes to the repository\n%1?").arg(QDir::toNativeSeparators(state.topLevel())); const QString msg = tr("Undo all pending changes to the repository\n%1?").arg(QDir::toNativeSeparators(state.topLevel()));
const QMessageBox::StandardButton answer const QMessageBox::StandardButton answer
= QMessageBox::question(m_core->mainWindow(), = QMessageBox::question(m_core->mainWindow(),
tr("Revert"), msg, tr("Undo Changes"), msg,
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes|QMessageBox::No,
QMessageBox::No); QMessageBox::No);
if (answer == QMessageBox::No) if (answer == QMessageBox::No)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment