Skip to content

'QComboBox' object has no attribute 'add_item' #2098

@buhtz

Description

@buhtz

Describe the problem, feature or ask a question:

✨Welcome to the project.✨

🎯 If you pick up this Issue because of the GOOD FIRST USE label. You will be mentored through the process if you want. 🤝 First the Issue is explained. At the end you will find some guidance for first contributors.

📡 Please do not hesitate to ask questions.
📡 Your solution don't need to be perfect.
🚫 Participation or contribution is only meaningful if you are familiar with the Back In Time application and are an active user. This project is not intended for learning basic Python skills or enhancing your profile at Microsoft GitHub.

📝Problem

  1. Use the latest development version. (Good news: The bug is not present in latest release, but only in the latest development version.)
  2. Run backintime-qtin a terminal window.
  3. Select a backup in the timeline (left list widget in main window).
  4. Press the toolbar button "Log view" or "Latest log".
  5. You should see this error in terminal:
Back In Time
Version: 1.6.0-dev.b0467fa3

Back In Time comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type `backintime --license' for details.

Traceback (most recent call last):
  File "/home/user/goodCloud/my.work/bit/backintime/qt/app.py", line 1366, in btnLastLogViewClicked
    logviewdialog.LogViewDialog(self).show()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/user/goodCloud/my.work/bit/backintime/qt/logviewdialog.py", line 99, in __init__
    self.comboFilter.add_item(_('All'), snapshotlog.LogFilter.NO_FILTER)
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'QComboBox' object has no attribute 'add_item'. Did you mean: 'addItem'?

🏁Solution

📌Investigate the code and fix it.

👣Your next steps

  1. If this is your first contribution in this project please introduce your self and tell us about your skills, wishes and plans. Also let us know how you found the issue and the project.
  2. Don't ignore the previous step.
  3. Read the existing contributors documentation.
  4. We can develop the next steps in the further discussion. Don't hesitate to ask.

Metadata

Metadata

Assignees

Labels

BugCode QualityAbout code quality, refactoring, (unit) testing, linting, ...Feedbackneeds user response, may be closed after timeout without a responseLowrelevant, but not urgentQtQt bugs, code or features

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions