Skip to content
Permalink
Browse files

Merge pull request #5916 from borysiasty/no_colon

[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 8c62a7cac2b63360760e7e2a237012bfb912700f
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 8c62a7c

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