Add some more prompt logging

This commit is contained in:
Florian Bruhin 2016-11-04 06:47:10 +01:00
parent 3a79faac16
commit dd0ce8fe3b

View File

@ -283,10 +283,12 @@ class PromptContainer(QWidget):
item = self._layout.takeAt(0)
if item is not None:
widget = item.widget()
log.prompt.debug("Deleting old prompt {}".format(widget))
widget.hide()
widget.deleteLater()
if question is None:
log.prompt.debug("No prompts left, hiding prompt container.")
self._prompt = None
self.hide()
return
@ -335,6 +337,7 @@ class PromptContainer(QWidget):
item = self._layout.takeAt(0)
if item is not None:
widget = item.widget()
log.prompt.debug("Deleting prompt {}".format(widget))
widget.hide()
widget.deleteLater()