Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37745209
en ru br
ALT Linux repositórios
S:11.0-alt3
5.0: 0.0.3-alt1
4.1: 0.0.3-alt1

Group :: Sistema/Configurações/Rede
RPM: virt-viewer

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0001-src-ensure-auth-entry-fields-are-cleared.patch
Download


From 73f567ea94eec04e6eb8bbac72d5c40518bca2b1 Mon Sep 17 00:00:00 2001
From: Daniel P. Berrangé <berrange@redhat.com>
Date: Tue, 27 Apr 2021 11:28:57 +0100
Subject: [PATCH] src: ensure auth entry fields are cleared
If authentication fails we reshow the same authentication dialog box
again. Rather than leaving the previous incorrect information in the
text entry boxes we need to clear them.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 src/virt-viewer-auth.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/src/virt-viewer-auth.c b/src/virt-viewer-auth.c
index 119d7f1..dbb3d25 100644
--- a/src/virt-viewer-auth.c
+++ b/src/virt-viewer-auth.c
@@ -114,6 +114,8 @@ virt_viewer_auth_collect_credentials(VirtViewerAuth *self,
     int response;
     char *message;
 
+    gtk_entry_set_text(GTK_ENTRY(self->credUsername), "");
+    gtk_entry_set_text(GTK_ENTRY(self->credPassword), "");
     if (username) {
         gtk_widget_show(self->credUsername);
         gtk_widget_show(self->promptUsername);
--
libgit2 1.1.0
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009