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

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

[Octave-bug-tracker] [bug #53176] Variable Editor shows placeholder inst


From: Sahil Yadav
Subject: [Octave-bug-tracker] [bug #53176] Variable Editor shows placeholder instead of the variable after executing 'clear all'
Date: Sat, 17 Feb 2018 08:06:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36

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

                 Summary: Variable Editor shows placeholder instead of the
variable after executing 'clear all'
                 Project: GNU Octave
            Submitted by: batterylow
            Submitted on: Sat 17 Feb 2018 01:06:52 PM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Sahil Yadav
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Though this is a really minor bug, but try the following code in GUI:

x = 1;
openvar x;
clear all;


The variable editor will close the variable and puts up 


Variable %d not found.


(See attached png as an example)

I changed the placeholder so that the variable's name shows up in quotes.
Patch included.

As a side note, if someone can explain me when the following line will be used
in the patch ?

return QVariant (QString ("x"));

I don't think we will want to print the statement other than a string
<http://doc.qt.io/archives/qt-4.8/qt.html#ItemDataRole-enum>. (for which
role== Qt::DisplayRole)



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 17 Feb 2018 01:06:52 PM UTC  Name: ss.png  Size: 18KiB   By:
batterylow

<http://savannah.gnu.org/bugs/download.php?file_id=43340>
-------------------------------------------------------
Date: Sat 17 Feb 2018 01:06:52 PM UTC  Name: 53176.diff  Size: 826B   By:
batterylow

<http://savannah.gnu.org/bugs/download.php?file_id=43341>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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