Skip to content

Commit

Permalink
Change details after user closed the message dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Sep 4, 2015
1 parent 8bcf03e commit 1b0c902
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions picard/ui/options/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@ def plugin_updated(self, plugin_name):
p.can_be_updated = False
p.can_be_downloaded = False
p.marked_for_update = True
self.add_plugin_item(p, item=i)
self.ui.plugins.setCurrentItem(i)
self.change_details()
msgbox = QtGui.QMessageBox(self)
msgbox.setText(
_(u"The plugin '%s' will be upgraded to version %s on next run of Picard.")
% (p.name, p.new_version))
msgbox.setStandardButtons(QtGui.QMessageBox.Ok)
msgbox.setDefaultButton(QtGui.QMessageBox.Ok)
msgbox.exec_()
self.add_plugin_item(p, item=i)
self.ui.plugins.setCurrentItem(i)
self.change_details()
break

def add_plugin_item(self, plugin, item=None):
Expand Down

0 comments on commit 1b0c902

Please sign in to comment.