[vfs_rework] Fixing scroll and focus jump when refreshing directory
AbandonedPublic

Authored by martinkostolny on Oct 30 2016, 7:47 PM.

Details

Reviewers
abika
Summary

First attempt for fixing the scroll jump and cursor move.

Basically I've done this:

  • revert of fileDeleted/delItem functions removal
  • introducing of _pendingVfiles (they are meant to be used only when refreshing)
  • created vfs::storeAndEmitUpdates(...) method for determining actual changes between _vfiles and _pendingVfiles and emitting selective change signals (add/update/delete)
    • this function is kind of stolen from vfs::vfs_refresh() of master branch
  • off-topic change: vfs::clear(vfileDict vfiles) -> vfs::clear(vfileDict &vfiles) to actually clear the hashmap keys

Diff Detail

Repository
R167 Krusader
Lint
Lint Skipped
Unit
Unit Tests Skipped
martinkostolny retitled this revision from to [vfs_rework] Fixing scroll and focus jump when refreshing directory.
martinkostolny updated this object.
martinkostolny edited the test plan for this revision. (Show Details)
martinkostolny added a reviewer: abika.
martinkostolny set the repository for this revision to R167 Krusader.
martinkostolny added a project: Krusader.
martinkostolny abandoned this revision.Nov 2 2016, 10:43 PM

We better keep VFS clean.