Commit 0a570929 authored by Knut Petter Svendsen's avatar Knut Petter Svendsen Committed by David Schulz
Browse files

Editor: Fixed typo in variable name



Change-Id: I74010a5e619750eaf2d7fd8bf827544d6e7b5b18
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 3996faa9
......@@ -257,33 +257,33 @@ int ReadOnlyFilesDialog::exec()
ReadOnlyResult result = RO_Cancel;
QStringList failedToMakeWritable;
foreach (ReadOnlyFilesDialogPrivate::ButtonGroupForFile buttengroup, d->buttonGroups) {
result = static_cast<ReadOnlyResult>(buttengroup.group->checkedId());
foreach (ReadOnlyFilesDialogPrivate::ButtonGroupForFile buttongroup, d->buttonGroups) {
result = static_cast<ReadOnlyResult>(buttongroup.group->checkedId());
switch (result) {
case RO_MakeWritable:
if (!Utils::FileUtils::makeWritable(Utils::FileName(QFileInfo(buttengroup.fileName)))) {
failedToMakeWritable << buttengroup.fileName;
if (!Utils::FileUtils::makeWritable(Utils::FileName(QFileInfo(buttongroup.fileName)))) {
failedToMakeWritable << buttongroup.fileName;
continue;
}
break;
case RO_OpenVCS:
if (!d->versionControls[buttengroup.fileName]->vcsOpen(buttengroup.fileName)) {
failedToMakeWritable << buttengroup.fileName;
if (!d->versionControls[buttongroup.fileName]->vcsOpen(buttongroup.fileName)) {
failedToMakeWritable << buttongroup.fileName;
continue;
}
break;
case RO_SaveAs:
if (!EditorManager::saveDocumentAs(d->document)) {
failedToMakeWritable << buttengroup.fileName;
failedToMakeWritable << buttongroup.fileName;
continue;
}
break;
default:
failedToMakeWritable << buttengroup.fileName;
failedToMakeWritable << buttongroup.fileName;
continue;
}
if (!QFileInfo(buttengroup.fileName).isWritable())
failedToMakeWritable << buttengroup.fileName;
if (!QFileInfo(buttongroup.fileName).isWritable())
failedToMakeWritable << buttongroup.fileName;
}
if (!failedToMakeWritable.isEmpty()) {
if (d->showWarnings)
......
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