diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-09-16 15:17:21 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-09-16 15:17:21 +0200 |
commit | 914adeab82d228773def64c9c304d1e15bab0b52 (patch) | |
tree | 9ab0f8e7b09d62b77ffc5450d9e883a89d69fd88 /src/plugins/clearcase | |
parent | 11f89ece8de7763f811d2fe1e45cb27ad4a77519 (diff) | |
parent | a4db6db358aefb60bac34cacbab23aa6f38279f7 (diff) | |
download | qt-creator-914adeab82d228773def64c9c304d1e15bab0b52.tar.gz |
Merge remote-tracking branch 'origin/3.2'
Conflicts:
src/plugins/qmldesigner/designercore/model/plaintexteditmodifier.cpp
src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp
Change-Id: I1627f6aa98a442413f8b08b579ecaf9647dc887b
Diffstat (limited to 'src/plugins/clearcase')
-rw-r--r-- | src/plugins/clearcase/clearcaseplugin.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/plugins/clearcase/clearcaseplugin.cpp b/src/plugins/clearcase/clearcaseplugin.cpp index bb1d223dd8..e26fc1b99d 100644 --- a/src/plugins/clearcase/clearcaseplugin.cpp +++ b/src/plugins/clearcase/clearcaseplugin.cpp @@ -1562,11 +1562,6 @@ bool ClearCasePlugin::vcsOpen(const QString &workingDir, const QString &fileName QFileInfo fi(workingDir, fileName); QString topLevel = currentState().topLevel(); QString absPath = fi.absoluteFilePath(); - const QString relFile = QDir(topLevel).relativeFilePath(absPath); - - const QString file = QDir::toNativeSeparators(relFile); - const QString title = QString::fromLatin1("Checkout %1").arg(file); - CheckOutDialog coDialog(title, m_viewData.isUcm); if (!m_settings.disableIndexer && (fi.isWritable() || vcsStatus(absPath).status == FileStatus::Unknown)) @@ -1575,6 +1570,12 @@ bool ClearCasePlugin::vcsOpen(const QString &workingDir, const QString &fileName QMessageBox::information(0, tr("ClearCase Checkout"), tr("File is already checked out.")); return true; } + + const QString relFile = QDir(topLevel).relativeFilePath(absPath); + const QString file = QDir::toNativeSeparators(relFile); + const QString title = QString::fromLatin1("Checkout %1").arg(file); + CheckOutDialog coDialog(title, m_viewData.isUcm); + // Only snapshot views can have hijacked files bool isHijacked = (!m_viewData.isDynamic && (vcsStatus(absPath).status & FileStatus::Hijacked)); if (!isHijacked) @@ -1591,9 +1592,11 @@ bool ClearCasePlugin::vcsOpen(const QString &workingDir, const QString &fileName else args << QLatin1String("-c") << comment; args << QLatin1String("-query"); - if (coDialog.isReserved()) + const bool reserved = coDialog.isReserved(); + const bool unreserved = !reserved || coDialog.isUnreserved(); + if (reserved) args << QLatin1String("-reserved"); - if (coDialog.isUnreserved()) + if (unreserved) args << QLatin1String("-unreserved"); if (coDialog.isPreserveTime()) args << QLatin1String("-ptime"); |