jejellyroll-fr / fpdb-3

GNU Affero General Public License v3.0
8 stars 2 forks source link

[ISSUE] AttributeError: 'QComboBox' object has no attribute 'text' when editing HUD #33

Closed brunetton closed 2 months ago

brunetton commented 2 months ago

Describe the bug UI crashes when trying to edit HUDs configuration

Traceback (most recent call last):
  File "/home/bruno/dev/forks/fpdb-3/./fpdb.pyw", line 235, in dia_hud_preferences
    self.config.edit_hud(result, self.stat2_dict[y].text(), self.stat3_dict[y].text(),
AttributeError: 'QComboBox' object has no attribute 'text'

To Reproduce Steps to reproduce the behavior:

  1. configure -> HUD settings
  2. select a HUD to edit
  3. click on Save
  4. See error

    • Version: dev

=> I've solved it, I'll quickly submit a PR with the fix

jejellyroll-fr commented 2 months ago

tx Bruno for you PR and improvement ;)