Menu ▾ ▴

#970 save as dialog keeps forgetting last directory

nextrelease
closed-fixed
nobody
None
5
2026-10-29
2012-12-20
No

Craig pointed out that on his Windows machine that it kept forgetting the last location where .vap files were saved. I think this was caused by one of the codes saving the current location as "file://c:/path/..." instead of just "c:/path/...". I've checked for this in the getter of the current file, and now the behavior seems clean. Note I could demonstrate the same bug on Linux.

Discussion

  • Jeremy Faden

    Jeremy Faden - 2012-12-20
    • status: open --> open-fixed
     
  • Jeremy Faden

    Jeremy Faden - 2013-03-29

    I was just playing with this more, and I need to review what was done back in 2012/12/20. It looked to me like it was still broken.

     
  • Jeremy Faden

    Jeremy Faden - 2013-12-05

    Craig pointed out this bug again. The procedure is such:

    1. save a vap to some acceptable location
    2. close and restart autoplot
    3. File->Save should bring up a "save as" dialog, but for Craig it starts in this old directory, not the one he selected in step 1.

    The preference that I believe will contain this old directory reference is "PersistentStateSupport.vap_recent"

    I'm attaching a script that prints the preferences.

     
  • Jeremy Faden

    Jeremy Faden - 2013-12-09

    I removed use of pref prefs.get( PREF_DIR+ext, "" ) where Craig had a valid value for this but I (and others) didn't ...

     
  • Jeremy Faden

    Jeremy Faden - 2014-04-14
    • status: open-fixed --> closed-fixed
    • Group: --> nextrelease
     
  • Jeremy Faden

    Jeremy Faden - 2026-10-29

    https://sourceforge.net/p/autoplot/bugs/2915/ where this bug seems to be back.