octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49643] questdlg returns incorrect string with


From: Rik
Subject: [Octave-bug-tracker] [bug #49643] questdlg returns incorrect string with ampersand embedded in it
Date: Fri, 18 Nov 2016 14:27:14 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?49643>

                 Summary: questdlg returns incorrect string with ampersand
embedded in it
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Fri 18 Nov 2016 06:27:12 AM PST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The questdlg function doesn't return the name of the button pressed.  Rather,
it returns the name of the button with an ampersand embedded in it.  This is a
regression from 4.0

Sample code:


choice = questdlg ("Question?", "questdlg", "BTN1", "BTN2", "BTN3", "BTN1")
## Click BTN3
choice = &BTN3
## Try again and Click BTN1
choice = questdlg ("Question?", "questdlg", "BTN1", "BTN2", "BTN3", "BTN1")
choice = BT&N1


The '&' is likely there to represent the keyboard shortcut in Qt.  I haven't
checked but other dialogs are probably affected.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49643>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]