asyncjob: Only show X button if dialog is cancellable (bz 1295418)

This commit is contained in:
Cole Robinson 2016-01-10 18:03:49 -05:00
parent 89c3638b63
commit 9747cd5473
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ class vmmAsyncJob(vmmGObjectUI):
})
# UI state
self.topwin.set_deletable(bool(self.cancel_cb))
self.topwin.set_title(title)
self.widget("pbar-text").set_text(text)
self.widget("cancel-async-job").set_visible(bool(self.cancel_cb))