Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize columns not working if the table is empty #38653

Closed
SrNetoChan opened this issue Sep 9, 2020 · 5 comments
Closed

Organize columns not working if the table is empty #38653

SrNetoChan opened this issue Sep 9, 2020 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)

Comments

@SrNetoChan
Copy link
Member

Describe the bug

While preparing a couple of layers for final users, I was using Organize columns to change the order of some fields and hide some other. Some layers it didn't seem to work, no matter what I did. I realized then that it only happens on empty layers. If I add a row, all my configuration would show up immediately. But, if I remove all rows, the problem appears again.

How to Reproduce

  1. Create a new table, a scratch layer will do.
  2. Add a few columns, 3 or 4
  3. Open the attribute table
  4. Rigth-click one of the columns and open the organize columns
  5. Change the order of the columns and hide some
  6. Notice that the changes does not seem to be applied except for the number of columns showing
  7. Add a feature. Notice that the order is fixed
  8. remove all feature. Notice that the order goes back to the unsorted one.

Peek 2020-09-09 00-56

QGIS and OS versions

QGIS version 3.10.9-A Coruña QGIS code revision bf47e9d
Compiled against Qt 5.9.5 Running against Qt 5.9.5
Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3
Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.7.1-CAPI-1.11.1 27a5e771
Compiled against SQLite 3.22.0 Running against SQLite 3.22.0
PostgreSQL Client Version 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a
QWT Version 6.1.3 QScintilla2 Version 2.10.2
PROJ.4 Version 493
OS Version Ubuntu 18.04.5 LTS
Active python plugins Mergin; socarto_recart_tools; db_manager; processing

Additional context

@SrNetoChan SrNetoChan added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 9, 2020
@SrNetoChan
Copy link
Member Author

Also confirmed in master:

QGIS version 3.15.0-Master QGIS code revision 014de96
Compiled against Qt 5.9.5 Running against Qt 5.9.5
Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3
Compiled against GEOS 3.7.1-CAPI-1.11.1 Running against GEOS 3.7.1-CAPI-1.11.1 27a5e771
Compiled against SQLite 3.22.0 Running against SQLite 3.22.0
PostgreSQL Client Version 12.4 (Ubuntu 12.4-1.pgdg18.04+1) SpatiaLite Version 4.3.0a
QWT Version 6.1.3 QScintilla2 Version 2.10.2
PROJ.4 Version 493
OS Version Ubuntu 18.04.5 LTS
Active python plugins Mergin; socarto_recart_tools; processing; db_manager

@troopa81
Copy link
Contributor

troopa81 commented Sep 9, 2020

This issue had already been reported but I fail to find it.

This is a Qt issue, I created a ticket in january 2019 but as you can see, there is not a lot of activity...

@gioman gioman added the Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...) label Sep 9, 2020
@SrNetoChan
Copy link
Member Author

This issue had already been reported but I fail to find it.

This is a Qt issue, I created a ticket in january 2019 but as you can see, there is not a lot of activity...

Maybe it was closed for being a upstream problem.

@troopa81
Copy link
Contributor

troopa81 commented Sep 9, 2020

Maybe it was closed for being a upstream problem

The QGIS issue was closed indeed. But even in closed ticket I can't find it.

@troopa81
Copy link
Contributor

I close the ticket because it's an upstream problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Upstream Needs changes in an upstream library (like Qt, Proj, GDAL, ...)
Projects
None yet
Development

No branches or pull requests

3 participants