forked from aldelaro5/dolphin-memory-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The newly introduced `MemWatchModel::addNodes()` method, which efficiently inserts rows individually (as opposed to invalidating the entire layout via `layoutChanged()`), is now used. This enables `onRowsInserted()` to auto-select pasted rows. Also, note that current selection (and not the current focus index) is now used as insertion point when pasting items via `Ctrl+V`. On the other hand, the **Paste** context menu action still uses the current focus index (the index from which the context menu was deployed). The memory leak around the `copiedRootNode` variable (which was never freed before) has been addressed.
- Loading branch information
1 parent
e5eddf1
commit 46806c0
Showing
2 changed files
with
17 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters