Ticket #1384 (closed defect: fixed)

Opened 2 years ago

Last modified 22 months ago

wxGUI Preferences: apply or save settings erases Layer Manager menu

Reported by: mmetz Owned by: martinl
Priority: major Milestone: 6.4.2
Component: wxGUI Version: svn-releasebranch64
Keywords: wxGUI, Preferences Cc: grass-dev@…
Platform: All CPU: All

Description

In the wxGUI Preferences dialog, when clicking on Apply or on Save, the menu bar "File Settings Raster .." is erased to blank. Cancel works.

Maybe related: in gui/wxpython/gui_modules/preferences.py, the function _updateSettings of class PreferencesDialog is never called, and the current window layout never saved. The function _updateSettings of class PreferencesBaseDialog does not check the current window layout.

Attachments

erased_menubar.png Download (16.5 KB) - added by mmetz 2 years ago.
screenshot of erased menubar

Change History

  Changed 2 years ago by martinl

  • cc martinl added

Unable to reproduce this bug? What version of wxPython? Could you send a screenshot?

in reply to: ↑ description ; follow-up: ↓ 3   Changed 2 years ago by wenzeslaus

I also cannot reproduce it (grass 7, Ubuntu 10.04, wxPython 2.8.10.1 (gtk2-unicode)). But I think that problem is caused by new code writen by me (change menu style). Menu bar is re-created always after "Apply" or "Save".

The possible solution is do not change menu style (do not re-create menu) on the fly but only after GUI restart (same as "icon theme").

in reply to: ↑ 2 ; follow-up: ↓ 5   Changed 2 years ago by martinl

Replying to wenzeslaus:

I also cannot reproduce it (grass 7, Ubuntu 10.04, wxPython 2.8.10.1 (gtk2-unicode)). But I think that problem is caused by new code writen by me (change menu style). Menu bar is re-created always after "Apply" or "Save".

it can be, see r46397

Changed 2 years ago by mmetz

screenshot of erased menubar

  Changed 2 years ago by mmetz

  • priority changed from blocker to major

I have a screenshot attached. My wxPython version is 2.8.12, recently upgraded from 2.8.11, and I can not remember having seen this before. Maybe this is the problem, because wxPython often comes with interesting changes between 2.8.x versions. Or my Fedora version of wxPython is patched to death...

Downgrading priority.

in reply to: ↑ 3   Changed 2 years ago by martinl

  • cc grass-dev@… added; martinl removed
  • owner changed from grass-dev@… to martinl
  • status changed from new to assigned

Replying to martinl:

Replying to wenzeslaus:

I also cannot reproduce it (grass 7, Ubuntu 10.04, wxPython 2.8.10.1 (gtk2-unicode)). But I think that problem is caused by new code writen by me (change menu style). Menu bar is re-created always after "Apply" or "Save".

it can be, see r46397

patch provided by Vaclav applied in r46665 (& backported to devbr6/relbr64).

  Changed 22 months ago by martinl

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.