author | llornkcor <llornkcor> | 2002-07-29 12:22:11 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-29 12:22:11 (UTC) |
commit | 0868e96b1737d121733c898ae92348a279e5b53f (patch) (side-by-side diff) | |
tree | b0fd8451d06776994528f3aa3b561fccbd053151 | |
parent | b4827a8b268af9d1485455cdf727f564047f396e (diff) | |
download | opie-0868e96b1737d121733c898ae92348a279e5b53f.zip opie-0868e96b1737d121733c898ae92348a279e5b53f.tar.gz opie-0868e96b1737d121733c898ae92348a279e5b53f.tar.bz2 |
fix bug number 140
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 0c792c6..577db75 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -353,32 +353,33 @@ bool VMemo::startRecording() { if(s) fileName=fileName.right(fileName.length()-s-2); qDebug("pathname will be "+fileName); if( fileName.left(1).find('/') == -1) fileName="/"+fileName; if( fileName.right(1).find('/') == -1) fileName+="/"; fName = "vm_"+ dt.toString()+ ".wav"; fileName+=fName; // No spaces in the filename fileName.replace(QRegExp("'"),""); fileName.replace(QRegExp(" "),"_"); fileName.replace(QRegExp(":"),"."); fileName.replace(QRegExp(","),""); + fileName += ".wav"; qDebug("filename is "+fileName); // open tmp file here char *pointer; pointer=tmpnam(NULL); qDebug("Opening tmp file %s",pointer); if(openWAV(pointer ) == -1) { // if(openWAV(fileName.latin1()) == -1) { QString err("Could not open the temp file\n"); err += fileName; QMessageBox::critical(0, "vmemo", err, "Abort"); ::close(dsp); return FALSE; } |