summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-06-27 22:57:58 (UTC)
committer llornkcor <llornkcor>2004-06-27 22:57:58 (UTC)
commit8aacad28f7906452f6e410f81b286430d43a0eb3 (patch) (side-by-side diff)
tree7ad01098a73a9d45b621af2aec03bdba3091d90a
parent78cd13f15c6057e18b6f095841a90bb438dd6fd2 (diff)
downloadopie-8aacad28f7906452f6e410f81b286430d43a0eb3.zip
opie-8aacad28f7906452f6e410f81b286430d43a0eb3.tar.gz
opie-8aacad28f7906452f6e410f81b286430d43a0eb3.tar.bz2
replace dots in filename
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index f088bef..b80b378 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -290,49 +290,49 @@ bool VMemo::startRecording() {
Config config( "Vmemo" );
config.setGroup( "System" );
useAlerts = config.readBoolEntry("Alert",1);
if(useAlerts) {
msgLabel = new QLabel( 0, "alertLabel" );
msgLabel->setText("<B><P><font size=+2>VMemo-Recording</font></B>");
msgLabel->show();
}
odebug << "Start recording engines" << oendl;
recording = TRUE;
if (openDSP() == -1) {
recording = FALSE;
return FALSE;
}
config.setGroup("Defaults");
date = TimeString::dateString( QDateTime::currentDateTime(),false,true);
date.replace(QRegExp("'"),"");
date.replace(QRegExp(" "),"_");
- date.replace(QRegExp(":"),".");
+ date.replace(QRegExp(":"),"-");
date.replace(QRegExp(","),"");
QString fName;
config.setGroup( "System" );
fName = QPEApplication::documentDir() ;
fileName = config.readEntry("RecLocation", fName);
int s;
s=fileName.find(':');
if(s)
fileName=fileName.right(fileName.length()-s-2);
odebug << "pathname will be "+fileName << oendl;
if( fileName.left(1).find('/') == -1)
fileName="/"+fileName;
if( fileName.right(1).find('/') == -1)
fileName+="/";
fName = "vm_"+ date + ".wav";
fileName+=fName;
odebug << "filename is " + fileName << oendl;
// open tmp file here
char *pointer;
pointer=tmpnam(NULL);