'QCombobox throwing unrequested value via connection method in python

QComboBox is connected to a function using following syntax:

self.combobox_releases_x_drive.currentTextChanged.connect(self.refresh_subfolders)

Python method look like:

def refresh_subfolders(self, second:bool = None):
   """
   Refresh and filtering subfolders in combobox.
   :return:
   """
   self.combobox_subfolders.clear()
   self.subfolders = self.get_subfolders()

second value is a boolean flag to show we are in the 2. loop or not. When I select the project name from the combobox it shall tigger the method and throw somehow the currentText value like the method's parameter.

Example result: second = {str} '166_Lepus'

Any idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source