Skip to content

Commit

Permalink
Improve spy hint items
Browse files Browse the repository at this point in the history
Ref #291
  • Loading branch information
algorys committed Apr 2, 2018
1 parent 636fad4 commit 382e2b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alignak_app/qobjects/events/spy.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SpyQWidget(QWidget):

def __init__(self):
super(SpyQWidget, self).__init__()
self.host_services_lbl = QLabel(_('Select spy host to display its problems...'))
self.host_services_lbl = QLabel(_('You are not spying on any hosts for now...'))
self.spy_list_widget = SpyQListWidget()
self.host_list_widget = QListWidget()
self.spy_timer = QTimer()
Expand Down
3 changes: 3 additions & 0 deletions alignak_app/qobjects/events/spy_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def add_spy_host(self, host_id):
:type host_id: str
"""

if self.parent():
self.parent().host_services_lbl.setText(_('Select spy host to display its problems...'))

if not self.initialized:
# Remove Hint item
self.takeItem(0)
Expand Down

0 comments on commit 382e2b9

Please sign in to comment.