Skip to content
Permalink
Browse files

[Plugin installer] Remove trailing colon if it's a very end of the me…

…ssage.
  • Loading branch information
borysiasty committed Dec 19, 2017
1 parent cefae89 commit 97018cf2e64c271b429021cf5031a588eb5d43ae
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/pyplugin_installer/installer.py
@@ -366,7 +366,9 @@ def installPlugin(self, key, quiet=False):

if infoString[0]:
level = error and QgsMessageBar.CRITICAL or QgsMessageBar.INFO
msg = "<b>%s:</b>%s" % (infoString[0], infoString[1])
msg = "<b>%s</b>" % infoString[0]
if infoString[1]:
msg += "<b>:</b> %s" % infoString[1]
iface.pluginManagerInterface().pushMessage(msg, level)

# ----------------------------------------- #
@@ -582,5 +584,7 @@ def installFromZipFile(self, filePath):

if infoString[0]:
level = error and QgsMessageBar.CRITICAL or QgsMessageBar.INFO
msg = "<b>%s:</b>%s" % (infoString[0], infoString[1])
msg = "<b>%s</b>" % infoString[0]
if infoString[1]:
msg += "<b>:</b> %s" % infoString[1]
iface.pluginManagerInterface().pushMessage(msg, level)

0 comments on commit 97018cf

Please sign in to comment.
You can’t perform that action at this time.