Project/ProjectProtocolsBrowser.py

changeset 5984
bc7ec03158fc
parent 5974
dfb291b5b620
child 6048
82ad8ec9548c
--- a/Project/ProjectProtocolsBrowser.py	Sat Nov 18 19:28:37 2017 +0100
+++ b/Project/ProjectProtocolsBrowser.py	Sun Nov 19 13:03:04 2017 +0100
@@ -545,8 +545,12 @@
                         "The compilation of the protocol file was"
                         " successful."))
             else:
+                if grpc:
+                    icon = UI.PixmapCache.getPixmap("gRPC48.png")
+                else:
+                    icon = UI.PixmapCache.getPixmap("protobuf48.png")
                 ui.showNotification(
-                    UI.PixmapCache.getPixmap("protobuf48.png"),
+                    icon,
                     self.tr("Protocol Compilation"),
                     self.tr(
                         "The compilation of the protocol file was"
@@ -559,8 +563,12 @@
                     self.tr(
                         "The compilation of the protocol file failed."))
             else:
+                if grpc:
+                    icon = UI.PixmapCache.getPixmap("gRPC48.png")
+                else:
+                    icon = UI.PixmapCache.getPixmap("protobuf48.png")
                 ui.showNotification(
-                    UI.PixmapCache.getPixmap("protobuf48.png"),
+                    icon,
                     self.tr("Protocol Compilation"),
                     self.tr(
                         "The compilation of the protocol file failed."))

eric ide

mercurial