Bug report #21096

Move selection to top doesn't worked when table is unsaved

Added by Patrick Dunford almost 6 years ago. Updated over 5 years ago.

Status:Open
Priority:High
Assignee:-
Category:Attribute table
Affected QGIS version:3.6.2 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:28914

Description

If changing data in a file based geopackage table.

Select a rown in the table, if the button to move selection to top is pressed, that record will not move to the top if there are records in the table that have not been saved.

Screenshot from 2019-01-29 16-14-10.png (51.1 KB) Etienne Trimaille, 2019-01-29 09:16 PM


Related issues

Duplicated by QGIS Application - Bug report #21217: Attribute Table - [Move Selection to top] doesn't apply o... Closed 2019-02-09
Duplicated by QGIS Application - Bug report #21348: Move to top Closed 2019-02-22

History

#1 Updated by Giovanni Manghi almost 6 years ago

  • Category changed from GUI to Attribute table
  • Operating System deleted (Debian 9)

#2 Updated by Etienne Trimaille almost 6 years ago

I can confirm that "Move selection to top" is not working for me. Even if the table is saved, the selection is not at the top. (cf screenshot).

I noticed the same behavior yesterday on another computer.

But if I click on another column header, then the "move selection to top" is working.

#3 Updated by Giovanni Manghi almost 6 years ago

  • Duplicated by Bug report #21217: Attribute Table - [Move Selection to top] doesn't apply on current selection while toggling on added

#4 Updated by Pedro Venâncio almost 6 years ago

I confirm this one, both on 3.4.4 (code revision 12c660a51e) and master (code revision b711ef01f8).

Etienne Trimaille wrote:

I can confirm that "Move selection to top" is not working for me. Even if the table is saved, the selection is not at the top. (cf screenshot).

I noticed the same behavior yesterday on another computer.

But if I click on another column header, then the "move selection to top" is working.

Also selecting "Move selection to top", then "Invert selection" two times, the "Move selection to top" works.

#5 Updated by Pedro Venâncio almost 6 years ago

Tested in Windows, with PostGIS layers and shapefiles, with Toggle Editing closed.

#6 Updated by Giovanni Manghi almost 6 years ago

  • Priority changed from Normal to High
  • Regression? changed from No to Yes
  • Status changed from Open to Feedback

Pedro Venâncio wrote:

Tested in Windows, with PostGIS layers and shapefiles, with Toggle Editing closed.

this is a regression, correct?

#7 Updated by Pedro Venâncio almost 6 years ago

Giovanni Manghi wrote:

this is a regression, correct?

Yes, definitively Giovanni. I tested in another machine that still have QGIS 3.4.3 (code revision b557cc265a) and it works as expected.

#8 Updated by Giovanni Manghi almost 6 years ago

  • Status changed from Feedback to Open

#9 Updated by Jürgen Fischer almost 6 years ago

#10 Updated by Bernd Vogelgesang over 5 years ago

Still not working in 3.6.2

#11 Updated by Giovanni Manghi over 5 years ago

  • Affected QGIS version changed from 3.4.4 to 3.6.2

#12 Updated by Bernd Vogelgesang over 5 years ago

Just installed 3.6.3. In "general" the selection to top button works now. What is different to past behaviour is, that when you already have a selection and click the button, nothing happens. Only when you make a new selection while the button is already active, it sorts the selection to top. So, I still see a regression here.

Also available in: Atom PDF