connect: When Custom URI selected, prepopulate with URI label

This commit is contained in:
Cole Robinson 2018-05-02 17:43:20 -04:00
parent 04398945e1
commit 1feb478557
1 changed files with 2 additions and 0 deletions

View File

@ -327,6 +327,8 @@ class vmmConnect(vmmGObjectUI):
uiutil.set_grid_row_visible(self.widget("uri-label"), not is_custom)
uiutil.set_grid_row_visible(self.widget("uri-entry"), is_custom)
if is_custom:
label = self.widget("uri-label").get_text()
self.widget("uri-entry").set_text(label)
self.widget("uri-entry").grab_focus()
self.populate_uri()