-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 2d694d2..7965b59 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -284,48 +284,51 @@ bool VMemo::startRecording() { | |||
284 | config.setGroup( "System" ); | 284 | config.setGroup( "System" ); |
285 | 285 | ||
286 | useAlerts = config.readBoolEntry("Alert"); | 286 | useAlerts = config.readBoolEntry("Alert"); |
287 | if(useAlerts) { | 287 | if(useAlerts) { |
288 | 288 | ||
289 | msgLabel = new QLabel( 0, "alertLabel" ); | 289 | msgLabel = new QLabel( 0, "alertLabel" ); |
290 | msgLabel->setText("<B><P><font size=+2>VMemo-Recording</font></B>"); | 290 | msgLabel->setText("<B><P><font size=+2>VMemo-Recording</font></B>"); |
291 | msgLabel->show(); | 291 | msgLabel->show(); |
292 | } | 292 | } |
293 | 293 | ||
294 | // if(useAlerts) | 294 | // if(useAlerts) |
295 | // QMessageBox::message("VMemo","Really Record?");//) ==1) | 295 | // QMessageBox::message("VMemo","Really Record?");//) ==1) |
296 | // return; | 296 | // return; |
297 | // } else { | 297 | // } else { |
298 | // if (!systemZaurus ) | 298 | // if (!systemZaurus ) |
299 | // QSound::play(Resource::findSound("vmemob")); | 299 | // QSound::play(Resource::findSound("vmemob")); |
300 | // } | 300 | // } |
301 | qDebug("Start recording engines"); | 301 | qDebug("Start recording engines"); |
302 | recording = TRUE; | 302 | recording = TRUE; |
303 | 303 | ||
304 | if (openDSP() == -1) { | 304 | if (openDSP() == -1) { |
305 | // QMessageBox::critical(0, "vmemo", "Could not open dsp device.\n"+errorMsg, "Abort"); | 305 | // QMessageBox::critical(0, "vmemo", "Could not open dsp device.\n"+errorMsg, "Abort"); |
306 | // delete msgLabel; | 306 | // delete msgLabel; |
307 | recording = FALSE; | 307 | recording = FALSE; |
308 | msgLabel=0; | ||
309 | delete msgLabel; | ||
310 | |||
308 | return FALSE; | 311 | return FALSE; |
309 | } | 312 | } |
310 | 313 | ||
311 | config.setGroup("Defaults"); | 314 | config.setGroup("Defaults"); |
312 | 315 | ||
313 | QDateTime dt = QDateTime::currentDateTime(); | 316 | QDateTime dt = QDateTime::currentDateTime(); |
314 | 317 | ||
315 | QString fName; | 318 | QString fName; |
316 | config.setGroup( "System" ); | 319 | config.setGroup( "System" ); |
317 | fName = QPEApplication::documentDir() ; | 320 | fName = QPEApplication::documentDir() ; |
318 | fileName = config.readEntry("RecLocation", fName); | 321 | fileName = config.readEntry("RecLocation", fName); |
319 | 322 | ||
320 | int s; | 323 | int s; |
321 | s=fileName.find(':'); | 324 | s=fileName.find(':'); |
322 | if(s) | 325 | if(s) |
323 | fileName=fileName.right(fileName.length()-s-2); | 326 | fileName=fileName.right(fileName.length()-s-2); |
324 | qDebug("pathname will be "+fileName); | 327 | qDebug("pathname will be "+fileName); |
325 | 328 | ||
326 | if( fileName.left(1).find('/') == -1) | 329 | if( fileName.left(1).find('/') == -1) |
327 | fileName="/"+fileName; | 330 | fileName="/"+fileName; |
328 | if( fileName.right(1).find('/') == -1) | 331 | if( fileName.right(1).find('/') == -1) |
329 | fileName+="/"; | 332 | fileName+="/"; |
330 | fName = "vm_"+ dt.toString()+ ".wav"; | 333 | fName = "vm_"+ dt.toString()+ ".wav"; |
331 | 334 | ||