diff options
author | Knut Petter Svendsen <knutpett@pvv.org> | 2015-01-02 16:15:20 +0100 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-06-11 09:08:09 +0000 |
commit | db7fbc687a86c44395bf3cdd0f825d655b9eb153 (patch) | |
tree | 95ee02117ed6fa088f724851044b8e18224e7310 /src/plugins/clearcase/clearcaseplugin.cpp | |
parent | a49134c47a48e2cded439c70e9ebf52dc0577d2c (diff) | |
download | qt-creator-db7fbc687a86c44395bf3cdd0f825d655b9eb153.tar.gz |
ClearCase: Persist save keep file on undo checkout
When undoing checkout on a modified file the user is prompted to
preserve the contents of the checked-out version under a file-name
of the form element-name.keep. Save the user's choice and use it
on subsequent undo checkout actions.
Change-Id: I26a73c7f1f456ae0cf1cad6741d30ff2aab4bf3f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/clearcase/clearcaseplugin.cpp')
-rw-r--r-- | src/plugins/clearcase/clearcaseplugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/clearcase/clearcaseplugin.cpp b/src/plugins/clearcase/clearcaseplugin.cpp index e08e392381..766b798b1d 100644 --- a/src/plugins/clearcase/clearcaseplugin.cpp +++ b/src/plugins/clearcase/clearcaseplugin.cpp @@ -920,9 +920,14 @@ void ClearCasePlugin::undoCheckOutCurrent() QDialog uncoDlg; uncoUi.setupUi(&uncoDlg); uncoUi.lblMessage->setText(tr("Do you want to undo the check out of \"%1\"?").arg(fileName)); + uncoUi.chkKeep->setChecked(m_settings.keepFileUndoCheckout); if (uncoDlg.exec() != QDialog::Accepted) return; keep = uncoUi.chkKeep->isChecked(); + if (keep != m_settings.keepFileUndoCheckout) { + m_settings.keepFileUndoCheckout = keep; + m_settings.toSettings(ICore::settings()); + } } vcsUndoCheckOut(state.topLevel(), file, keep); } |