forked from qt-creator/qt-creator
VcsManager: Tell user which file is going to be deleted
Change-Id: I72a853cf65d0bd697379c1738657f098243b814d Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -348,8 +348,8 @@ bool VcsManager::promptToDelete(IVersionControl *vc, const QString &fileName)
|
||||
if (!vc->supportsOperation(IVersionControl::DeleteOperation))
|
||||
return true;
|
||||
const QString title = tr("Version Control");
|
||||
const QString msg = tr("Would you like to remove this file from the version control system (%1)?\n"
|
||||
"Note: This might remove the local file.").arg(vc->displayName());
|
||||
const QString msg = tr("Would you like to remove\n\t%1\nfrom the version control system (%2)?\n"
|
||||
"Note: This might remove the local file.").arg(fileName, vc->displayName());
|
||||
const QMessageBox::StandardButton button =
|
||||
QMessageBox::question(ICore::dialogParent(), title, msg, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
||||
if (button != QMessageBox::Yes)
|
||||
|
||||
Reference in New Issue
Block a user