Skip to content

Commit

Permalink
fixed transaction result on ncurses
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Jan 1, 2017
1 parent ca2727d commit eaf84ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dnfdragora/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,20 @@ def run(self, pkglist):

itemVect.append(level1Item)

sizeLabel.setText(_("Total size ") + misc.format_number(total_size))
dlg.pollEvent()

yui.YUI.app().busyCursor()
itemCollection = yui.YItemCollection(itemVect)
treeWidget.startMultipleChanges()
treeWidget.deleteAllItems()
treeWidget.addItems(itemCollection)
sizeLabel.setText(_("Total size ") + misc.format_number(total_size))
treeWidget.doneMultipleChanges()
yui.YUI.app().normalCursor()

dlg.setDefaultButton(okButton)


accepting = False
while (True) :
event = dlg.waitForEvent()
Expand Down

0 comments on commit eaf84ab

Please sign in to comment.