author | llornkcor <llornkcor> | 2002-05-23 02:58:32 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-23 02:58:32 (UTC) |
commit | 999d033f887064f5e1ddfd492f12a7f1ede72887 (patch) (side-by-side diff) | |
tree | d8cd02814fa2edda14353fca8a0eaa39651092ea /core/applets/vmemo | |
parent | 375cce9ad697f99d54f3e1c60c6d197b535ed04e (diff) | |
download | opie-999d033f887064f5e1ddfd492f12a7f1ede72887.zip opie-999d033f887064f5e1ddfd492f12a7f1ede72887.tar.gz opie-999d033f887064f5e1ddfd492f12a7f1ede72887.tar.bz2 |
workaround for bug with QPEApplication::documentDir() returning 'root/...' instead of '/root/...'
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 7cc4062..f5d2b20 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -302,8 +302,10 @@ bool VMemo::startRecording() { if(s) fileName=fileName.right(fileName.length()-s-2); qDebug("filename will be "+fileName); - if( fileName.right(1).find('/') == -1) - fileName+="/"; + if( fileName.left(1).find('/') == -1) + fileName="/"+fileName; + if( fileName.right(1).find('/') == -1) + fileName+="/"; fName = "vm_"+ dt.toString()+ ".wav"; fileName+=fName; |