Repository navigation
Commit f85eaae
Organizer: always offer "Import Calculation from Output File" (#97)
getFileMenu() added the import entry only when the selected tree node
was literally a "project" -- with a comment conceding the approach
("Hardwire the import entry, not sure if there is any better way to do
it"). So File showed just "Upload File..." and "Quit" unless the user
had happened to click a project first.
Reported from a live session: "Only see it if I select users, or andy,
and then click on File ... better to always have access to it". That is
right, and it matters more than it looks: importing externally run
output is the whole of #44 and half of #94, and the entry point was
effectively hidden.
Importing does not depend on what is selected, so it is now always
offered.
That change alone would have introduced a crash. CalcMgr::getContainer()
dereferences p_treeCtrl->getSelection() with no null check, which was
unreachable while the menu entry required a selected project and is not
any more. It now returns 0, which is the contract WxCalcImport already
expects -- it checks for it and reports "Can't access or write to the
specified parent project for the import", the right message for "you
have not said where to put it".
Not changed: Upload File is still offered for any collection. The same
report suggests it should appear only inside a job, which needs a
definition of "in a job" I would be guessing at; left on #97.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFMUNbw2UpRPmgsqviAowb1 parent 0890f81 commit f85eaae
1 file changed
Lines changed: 32 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2367 | 2367 | | |
2368 | 2368 | | |
2369 | 2369 | | |
2370 | | - | |
2371 | | - | |
2372 | | - | |
2373 | | - | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2377 | 2373 | | |
2378 | 2374 | | |
2379 | 2375 | | |
| |||
2385 | 2381 | | |
2386 | 2382 | | |
2387 | 2383 | | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
2388 | 2400 | | |
2389 | 2401 | | |
2390 | 2402 | | |
| |||
4771 | 4783 | | |
4772 | 4784 | | |
4773 | 4785 | | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
4774 | 4799 | | |
4775 | 4800 | | |
4776 | 4801 | | |
| |||
0 commit comments