author | llornkcor <llornkcor> | 2002-04-27 04:33:57 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-27 04:33:57 (UTC) |
commit | e2f3288d468508f2cf7c0a327044963ca4b1b54a (patch) (unidiff) | |
tree | d149829fdc65a58b6feb200868bd0f28c5f37cd0 /core/applets/vmemo/vmemo.cpp | |
parent | 8ca9c8dad17ccaee9b0b8132324176c2a8e40526 (diff) | |
download | opie-e2f3288d468508f2cf7c0a327044963ca4b1b54a.zip opie-e2f3288d468508f2cf7c0a327044963ca4b1b54a.tar.gz opie-e2f3288d468508f2cf7c0a327044963ca4b1b54a.tar.bz2 |
bug fix
Diffstat (limited to 'core/applets/vmemo/vmemo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 4b668de..ec46340 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp | |||
@@ -19,16 +19,16 @@ | |||
19 | #include <unistd.h> | 19 | #include <unistd.h> |
20 | #include <stdio.h> | 20 | #include <stdio.h> |
21 | #include <sys/stat.h> | 21 | #include <sys/stat.h> |
22 | #include <fcntl.h> | 22 | #include <fcntl.h> |
23 | #include <sys/ioctl.h> | 23 | #include <sys/ioctl.h> |
24 | #include <linux/soundcard.h> | 24 | #include <linux/soundcard.h> |
25 | |||
25 | #include <string.h> | 26 | #include <string.h> |
26 | #include <stdlib.h> | 27 | #include <stdlib.h> |
27 | #include <errno.h> | 28 | #include <errno.h> |
28 | #include <string.h> | ||
29 | 29 | ||
30 | typedef struct _waveheader { | 30 | typedef struct _waveheader { |
31 | u_long main_chunk; /* 'RIFF' */ | 31 | u_long main_chunk; /* 'RIFF' */ |
32 | u_long length; /* filelen */ | 32 | u_long length; /* filelen */ |
33 | u_long chunk_type; /* 'WAVE' */ | 33 | u_long chunk_type; /* 'WAVE' */ |
34 | u_long sub_chunk; /* 'fmt ' */ | 34 | u_long sub_chunk; /* 'fmt ' */ |
@@ -290,13 +290,13 @@ void VMemo::mousePressEvent( QMouseEvent *me ) | |||
290 | 290 | ||
291 | int s; | 291 | int s; |
292 | s=fileName.find(':'); | 292 | s=fileName.find(':'); |
293 | if(s) | 293 | if(s) |
294 | fileName=fileName.right(fileName.length()-s-2); | 294 | fileName=fileName.right(fileName.length()-s-2); |
295 | qDebug("filename will be "+fileName); | 295 | qDebug("filename will be "+fileName); |
296 | if( !fileName.right(1).find('/') == -1) | 296 | if( fileName.right(1).find('/') == -1) |
297 | fileName+="/"; | 297 | fileName+="/"; |
298 | 298 | ||
299 | // if(systemZaurus) | 299 | // if(systemZaurus) |
300 | // fileName=vmCfg.readEntry("Dir", "/mnt/cf/"); // zaurus does not have /mnt/ramfs | 300 | // fileName=vmCfg.readEntry("Dir", "/mnt/cf/"); // zaurus does not have /mnt/ramfs |
301 | // else | 301 | // else |
302 | // fileName=vmCfg.readEntry("Dir", "/mnt/ramfs/"); | 302 | // fileName=vmCfg.readEntry("Dir", "/mnt/ramfs/"); |