Commit 6187d45
committed
Fixing Set-to-data shortkey
The underlying functionality makes it possible to switch a certain
memory in Cutter to data (via the shortcut `d`). This functionality is
comparable to other similar products. The functionality already existed
in cutter. Unfortunately it was broken due to two problems:
* The underlying action was not added to a widget - this is now fixed,
by adding it to the `setToDataMenu` - like other related actions
* If the underlying meta was not prevously data, it simply just ignored
the action, as the size of the data returned uninitilialized memory.
This is now fixed. Returning -1 from `CutterCore::sizeofDataMeta`
indicates that the Meta at the address is currently no data.1 parent 61f412c commit 6187d45
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
| 869 | + | |
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
912 | 913 | | |
913 | 914 | | |
914 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
915 | 920 | | |
916 | 921 | | |
917 | 922 | | |
| |||
0 commit comments