|
From: | Torsten |
Subject: | [Octave-bug-tracker] [bug #42242] Octave does not always execute most recently saved file in an NFS directory |
Date: | Wed, 28 May 2014 17:58:20 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
Follow-up Comment #19, bug #42242 (project octave): The function that is used for all save actions contains the following code // save the contents into the file QTextStream out (&file); QApplication::setOverrideCursor (Qt::WaitCursor); out << _edit_area->text (); out.flush (); QApplication::restoreOverrideCursor (); file.flush (); file.close (); >From the Qt-docs: * QTextStream::flush (): Flushes any buffered data waiting to be written to the device. * bool QFile::flush (): Flushes any buffered data to the file. Returns true if successful; otherwise returns false. The file is flushed but there is no check whether the flush was successful. Can it happen that a flush fails on NTFS directories? I can prepare a patch that adds that check. But what should be done if flush returns false? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?42242> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |