Hi there, I believed I discovered the real reason behind this issue.

When a entry in a dialog is masked, and the dialog is destroyed, then
the string containing the real text is cleared.

            string s = "";
            using (Dialog dialog = new Dialog("Bug report", null, 
DialogFlags.Modal, Stock.Ok, ResponseType.Ok)) {
                TokenRetrieverControl control = new TokenRetrieverControl();
                dialog.VBox.Add(control);
                dialog.ShowAll();
                s = control.Pin;
                dialog.Run();
                dialog.Destroy();
            }

            Console.WriteLine("String value =\""+s+"\"" );  // The string s is 
empty here :-(
            Console.ReadLine();

** Attachment added: "visual studio project"
   http://launchpadlibrarian.net/29481970/LittleBugReport.zip

-- 
If Entry.Visibility is false Entry.Text is always empty
https://bugs.launchpad.net/bugs/159666
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to