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

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

[Octave-bug-tracker] [bug #45422] GUI Editor does not warn if file could


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #45422] GUI Editor does not warn if file could not be saved
Date: Wed, 01 Jul 2015 16:26:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #5, bug #45422 (project octave):

OK.  You'll have to experiment a bit on your system with regard to the manner
in which a file opens.  I've attached a little diff patch to print out some
file modes if the file opens in an unexpected manner.

The open mode codes are here:

http://doc.qt.io/qt-4.8/qiodevice.html#OpenModeFlag-enum

There doesn't appear to be anything in the documentation explaining that the
file should open exactly as requested.  It might be on your system that,
although the request is QIODevice::WriteOnly, the file does open but with
QIODevice::ReadOnly.  Whereas on my system perhaps the file does not open.  If
that is the case, then you'll need to change the code slightly, something
like:


  if (!file.open (QIODevice::WriteOnly) ||
      !(file.openMode () & QIODevice::WriteOnly))



(file #34355)
    _______________________________________________________

Additional Item Attachment:

File name: check_open_setting_djs2015jul01.diff Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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