Commit 9d4910f3 authored by David Schulz's avatar David Schulz
Browse files

Core: Fix displaying issue of read only file dialog.

If there is just one column the user has no choice. In
this case we want to hide all columns.

The issue was introduced by


Task-number: QTCREATORBUG-13171
Change-Id: Ie151b908866f80d138fd262f6c3708ef380ca908
Reviewed-by: default avatarEike Ziller <>
parent 7a9a1b04
...@@ -460,7 +460,7 @@ void ReadOnlyFilesDialogPrivate::initDialog(const QStringList &fileNames) ...@@ -460,7 +460,7 @@ void ReadOnlyFilesDialogPrivate::initDialog(const QStringList &fileNames)
ui.treeWidget->setAlternatingRowColors(true); ui.treeWidget->setAlternatingRowColors(true);
// Do not show any options to the user if he has no choice. // Do not show any options to the user if he has no choice.
if (!useSaveAs && (useVCS || !useMakeWritable)) { if (!useSaveAs && (!useVCS || !useMakeWritable)) {
ui.treeWidget->setColumnHidden(MakeWritable, true); ui.treeWidget->setColumnHidden(MakeWritable, true);
ui.treeWidget->setColumnHidden(OpenWithVCS, true); ui.treeWidget->setColumnHidden(OpenWithVCS, true);
ui.treeWidget->setColumnHidden(SaveAs, true); ui.treeWidget->setColumnHidden(SaveAs, true);
Supports Markdown
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