console: fix checkbox to save password if it was loaded from keyring

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1302175

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2016-06-07 14:50:58 +02:00
parent 7280dcf7df
commit 7e1bd1d762
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ class vmmConsolePages(vmmGObjectUI):
bool(self.config.has_keyring()))
if self.config.has_keyring():
self.widget("console-auth-remember").set_active(
bool(pw and username))
bool(withPassword and pw) or (withUsername and username))
self.widget("console-pages").set_current_page(
_CONSOLE_PAGE_AUTHENTICATE)