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
111f65b518.

Task-number: QTCREATORBUG-13171
Change-Id: Ie151b908866f80d138fd262f6c3708ef380ca908
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
David Schulz
2015-03-02 10:39:24 +01:00
parent 7a9a1b04b1
commit 9d4910f3b8

View File

@@ -460,7 +460,7 @@ void ReadOnlyFilesDialogPrivate::initDialog(const QStringList &fileNames)
ui.treeWidget->setAlternatingRowColors(true);
// 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(OpenWithVCS, true);
ui.treeWidget->setColumnHidden(SaveAs, true);