From 999d033f887064f5e1ddfd492f12a7f1ede72887 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 23 May 2002 02:58:32 +0000 Subject: workaround for bug with QPEApplication::documentDir() returning 'root/...' instead of '/root/...' --- (limited to 'core/applets/vmemo') 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; -- cgit v0.9.0.2