From f872d92d2260cefc810c16b8d65a5994da1bbe1c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 27 Oct 2015 18:20:11 +0800 Subject: [PATCH] gui/schedule: improve delete status bar message --- artiq/gui/schedule.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/gui/schedule.py b/artiq/gui/schedule.py index 1439dfa6d..5505bf5bf 100644 --- a/artiq/gui/schedule.py +++ b/artiq/gui/schedule.py @@ -104,5 +104,9 @@ class ScheduleDock(dockarea.Dock): if idx: row = idx[0].row() rid = self.table_model.row_to_key[row] - self.status_bar.showMessage("Deleted RID {}".format(rid)) + if graceful: + msg = "Requested termination of RID {}".format(rid) + else: + msg = "Deleted RID {}".format(rid) + self.status_bar.showMessage(msg) asyncio.ensure_future(self.delete(rid, graceful))