FolderView: set sort mode to unserted after catching insert signal
AbandonedPublic

Authored by McPain on Dec 20 2018, 11:16 AM.

Details

Summary

When new item is created, the initMaps() is called. Positioner will init his maps relying on folderview.sortMode() == 0 (alphanumeric sort)
For example, we have three icons: (1, 2, 3)
If we create a "12" icon, it should be (1, 2, 3, 12), but it is (1, empty, 2, 3, 12):
(1, 2, 3) -> create -> (1, 12, 2, 3) -> move(0, 3) -> (1, empty, 2, 3, 12) we moved to (0,4) because (0,3) is busy

Before patch:

After patch:

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
McPain created this revision.Dec 20 2018, 11:16 AM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 20 2018, 11:16 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
McPain requested review of this revision.Dec 20 2018, 11:16 AM