Commit 06830421 authored by Robert Loehning's avatar Robert Loehning Committed by Orgad Shaneh

ClearCase: Don't try reading when file cannot be opened

Change-Id: Id403f9ed58fb624aef7f6d54607e19a5dd057fd5
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
Reviewed-by: default avatarRobert Loehning <>
parent dfec256d
......@@ -1668,10 +1668,12 @@ bool ClearCasePlugin::vcsCheckIn(const QString &messageFile, const QStringList &
replaceActivity &= (activity != QLatin1String(Constants::KEEP_ACTIVITY));
if (replaceActivity && !vcsSetActivity(m_checkInView, title, activity))
return false;
QString message;
QFile msgFile(messageFile); | QFile::Text);
QString message = QString::fromLocal8Bit(msgFile.readAll().trimmed().constData());
if ( | QFile::Text)) {
message = QString::fromLocal8Bit(msgFile.readAll().trimmed());
QStringList args;
args << QLatin1String("checkin");
if (message.isEmpty())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment