qrun: failed when checking "show hidden commands" checkbox

Bug #493109 reported by methane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
High
Alexander Belchenko

Bug Description

bzr: ERROR: exceptions.TypeError: argument 1 of QComboBox.findText() has an invalid type

Traceback (most recent call last):
  File "C:/Documents and Settings/inada-n/Application Data/bazaar/2.0/plugins\qbzr\lib\run.py", line 132, in set_cmd_combobox
TypeError: argument 1 of QComboBox.findText() has an invalid type

This patch fixes it.

=== modified file lib/run.py
--- lib/run.py 2009-12-06 02:00:31 +0000
+++ lib/run.py 2009-12-06 10:55:46 +0000
@@ -76,7 +76,7 @@
         # setup signals
         QtCore.QObject.connect(self.ui.hidden_checkbox,
             QtCore.SIGNAL("stateChanged(int)"),
- self.set_cmd_combobox)
+ lambda x: self.set_cmd_combobox())
         QtCore.QObject.connect(self.ui.cmd_combobox,
             QtCore.SIGNAL("currentIndexChanged(const QString&)"),
             self.set_cmd_help)

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote :

Actually it should be

lambda x: self.set_cmd_combobox(all=x)

But thanks anyway.

Changed in qbzr:
assignee: nobody → Alexander Belchenko (bialix)
importance: Undecided → High
milestone: none → 0.17
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.