bugGNU Octave - Bugs: bug #37406, GUI/IDE can't track more than one...

 
 

bug #37406: GUI/IDE can't track more than one file saved outside the editor

Submitter:  Dan Sebald <sebald>
Submitted:  Thu 20 Sep 2012 09:36:14 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 25 Dec 2012 09:26:58 PM UTC, comment #2: 
Torsten Lilge <ttl>
Group Member
Thu 04 Oct 2012 05:24:05 AM UTC, comment #1: 

[patch #7857] is addresses this bug.

Dan Sebald <sebald>
Thu 20 Sep 2012 09:36:14 AM UTC, original submission:  

We're all learning here with this Qt stuff...

Here's an observation about the use of the static function warning.  The "warning" function sort of halts everything, and isn't the type of thing to use for notification of a file-update-outside-application.  Note from the Qt documentation:

QMessageBox::warning

Warning: Do not delete parent during the execution of the dialog. If you want to do this, you should create the dialog yourself using one of the QMessageBox constructors.

Yes, we are issuing a warning to the user about the file being saved outside the file editor, but the problem is that when the warning message is displayed Qt will not handle another file being updated outside the application.  (Open two files in the GUI/IDE editor and at the console command line type "touch file1.m; touch file2.m".  The second file will not be recognized.)

Generally, a program isn't supposed to wait on entry from the user, i.e., polling loop. Instead, we'll have to figure out a way, per the documentation's suggestion, to construct the QMessageBox for the warning and connect some slots to the signals it issues to handle the user's response.

Let's save this for later when we clear up a few more show-stoppers.  Please downgrade the report priority.

Dan Sebald <sebald>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by jordigh (Updated the item)
  • -email is unavailable- added by sebald (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-12-25 ttl StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2012-10-04 jordigh StatusNone Patch Submitted

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code