Skip to content

buttonBoxClicked function causes error when ui is not set tu english #2

@thbaumann

Description

@thbaumann

The buttonBoxClicked-function causes an error when using a ui in a different language than english.
The function checks if the name of the buttons are "Apply" or "Reset" but if the ui of QGIS is not set to english these buttons won't habe a button-text "Apply" or "Reset" as you can see in the following screenshot:

quickdraw

So on the on hand the functions like self.draw() or self.resetText() will just not be called or if the button-text contains special caracters as shown in the screenshot you this will cause an unicode encode error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions