Skip to content

Commit

Permalink
Merge pull request #5916 from borysiasty/no_colon
Browse files Browse the repository at this point in the history
[Plugin installer] Remove trailing colon if it's a very end of the message
  • Loading branch information
borysiasty committed Dec 20, 2017
2 parents 45859be + 97018cf commit 8c62a7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/pyplugin_installer/installer.py
Expand Up @@ -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)

# ----------------------------------------- #
Expand Down Expand Up @@ -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 8c62a7c

Please sign in to comment.