On Monday 08 September 2008, Chris Cannam wrote:

> Quick note: I'd like to claim the conversion of KTempFile for my own
> task list, please.

> The conversion (mostly to QTemporaryFile, I expect) should be
> straightforward enough, but it's used in a couple of important places
> and I want to be careful about it.

I guess you stuffed it up.

Maybe you can save me some homework trying to fix this.

$PWD gets littered with files like:

autoSaveFileNameTemp_..J19716
autoSaveFileNameTemp_..M19716
autoSaveFileNameTemp_..T19716

After I save the file with a name (now that I can!) I would expect that to 
change, but:

[generic]  RosegardenGUIDoc::slotAutoSave() - doc modified - 
saving ' "/home/me/SVN/qt4/blankt.rg" ' as  "autoSaveFileNameTemp_"

[generic]  RosegardenGUIDoc::saveDocumentActual( "autoSaveFileNameTemp_" )

And now:

autoSaveFileNameTemp_
autoSaveFileNameTemp_..J19716
autoSaveFileNameTemp_..M19716
autoSaveFileNameTemp_..T19716

So the issues I can think of right off are:

1) these should be going to ~/autosave (is this supposed to be different now 
by design?
2) these should be taking names like:
    #\!home\!me\!tutorial\!supplemental\!fidelio.mid\!#

I haven't yet managed to trigger it on demand, but I'm chasing another problem 
that fires this code:

    QDir dir(QFileInfo(tempFileName).dir());
    if (!dir.rename(tempFileName, filename)) {
                errMsg = tr( qStrToCharPtrUtf8( QString("Failed to rename 
temporary output file '%1' to desired output 
file '%2'").arg(tempFileName).arg(filename) )  );
        return false;
    }

I think I got that on a SaveAs one time.  I've seen it before, but haven't 
quite nailed exactly when and how.

I can continue to chip away at this on my own, but if you have any memories of 
things you thought might not be quite right, that would probably be a helpful 
starting point.





-- 
D. Michael McIntyre 

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to