~bzr/bzr-explorer/ppa-daily

« back to all changes in this revision

Viewing changes to lib/switch_dialog.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2010-09-30 15:21:05 UTC
  • mfrom: (311.41.35 trunk)
  • Revision ID: a.starr.b@gmail.com-20100930152105-g2p905ajjtox8oos
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
from PyQt4 import QtCore
17
18
 
18
19
from bzrlib.plugins.qbzr.lib.util import (
19
20
    runs_in_loading_queue,
61
62
        branch_combo.clear()
62
63
        for br in self.branch.bzrdir.find_repository().find_branches():
63
64
            self.processEvents()
64
 
            branch_combo.addItem(self._display_url(br.base), br.base)
 
65
            branch_combo.addItem(self._display_url(br.base), 
 
66
                                 QtCore.QVariant(br.base))
65
67
 
66
68
    def _display_url(self, branch_url):
67
69
        """Make a shorter display url where appropriate."""