author | llornkcor <llornkcor> | 2002-05-14 22:04:42 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-14 22:04:42 (UTC) |
commit | 1d397c2c0df731dc878c8574f653c8c2685e2378 (patch) (unidiff) | |
tree | 0a3c2aeb664413f10e55bf989cc24b0285d6471b | |
parent | e325f9cfb783010caa8618608a4d57884c0107c5 (diff) | |
download | opie-1d397c2c0df731dc878c8574f653c8c2685e2378.zip opie-1d397c2c0df731dc878c8574f653c8c2685e2378.tar.gz opie-1d397c2c0df731dc878c8574f653c8c2685e2378.tar.bz2 |
fricking dos line endings... man.. I'll be SO glad when I get dsl back... ggrrrrrrrrr
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.cpp b/noncore/unsupported/filebrowser/filebrowser.cpp index 10e50f0..7dabdb6 100644 --- a/noncore/unsupported/filebrowser/filebrowser.cpp +++ b/noncore/unsupported/filebrowser/filebrowser.cpp | |||
@@ -541,26 +541,26 @@ void FileView::cut() | |||
541 | 541 | ||
542 | flist.clear(); | 542 | flist.clear(); |
543 | while( item ){ | 543 | while( item ){ |
544 | if( ite | 544 | if( ite |
545 | // ##### a better inmplementation might be to rename the CUT file | 545 | // ##### a better inmplementation might be to rename the CUT file |
546 | // ##### to ".QPE-FILEBROWSER-MOVING" rather than copying it. | 546 | // ##### to ".QPE-FILEBROWSER-MOVING" rather than copying it. |
547 | QString cmd, dest, basename, cd = "/tmp/qpemoving"; | 547 | QString cmd, dest, basename, cd = "/tmp/qpemoving"; |
548 | QStringList newflist; | 548 | QStringList newflist; |
549 | newflist.clear(); | 549 | newflist.clear(); |
550 | 550 | ||
551 | cmd = "rm -rf " + cd; | 551 | cmd = "rm -rf " + cd; |
552 | system ( (const char *) cmd ); | 552 | system ( (const char *) cmd ); |
553 | cmd = "mkdir " + cd; | 553 | cmd = "mkdir " + cd; |
554 | system( (const char *) cmd ); | 554 | system( (const char *) cmd ); |
555 | 555 | ||
556 | // get the names of the files to cut | 556 | // get the names of the files to cut |
557 | FileItem * item; | 557 | FileItem * item; |
558 | 558 | ||
559 | if((item = (FileItem *) firstChild()) == 0) return; | 559 | if((item = (FileItem *) firstChild()) == 0) return; |
560 | 560 | ||
561 | flist.clear(); | 561 | flist.clear(); |
562 | while( item ){ | 562 | while( item ){ |
563 | if( item->isSelected() /*&& !item->isDir()*/ ){ | 563 | if( item->isSelected() /*&& !item->isDir()*/ ){ |
564 | flist += item->getFilePath(); | 564 | flist += item->getFilePath(); |
565 | } | 565 | } |
566 | item = (FileItem *) item->nextSibling(); | 566 | item = (FileItem *) item->nextSibling(); |
@@ -1107,23 +1107,23 @@ void FileBrowser::cleanUp() { | |||
1107 | QString cmdr = "rm -rf /tmp/filebrowserThumbnailCache"; | 1107 | QString cmdr = "rm -rf /tmp/filebrowserThumbnailCache"; |
1108 | // qDebug("exit"); | 1108 | // qDebug("exit"); |
1109 | system(cmdr.latin1()); | 1109 | system(cmdr.latin1()); |
1110 | } | 1110 | } |
1111 | 1111 | ||
1112 | { | 1112 | { |
1113 | bool valShowThumbnails=viewMenu->isItemChecked( viewMenu->idAt( 2 ) ); | 1113 | bool valShowThumbnails=viewMenu->isItemChecked( viewMenu->idAt( 2 ) ); |
1114 | valShowThumbnails=!valShowThumbnails; | 1114 | valShowThumbnails=!valShowThumbnails; |
1115 | viewMenu->setItemChecked( viewMenu->idAt( 2 ), valShowThumbnails ); | 1115 | viewMenu->setItemChecked( viewMenu->idAt( 2 ), valShowThumbnails ); |
1116 | fileView->setShowThumbnails(valShowThumbnails); | 1116 | fileView->setShowThumbnails(valShowThumbnails); |
1117 | 1117 | ||
1118 | Config cfg("Filebrowser"); | 1118 | Config cfg("Filebrowser"); |
1119 | cfg.setGroup("View"); | 1119 | cfg.setGroup("View"); |
1120 | cfg.writeEntry("Thumbnails",valShowThumbnails?"TRUE":"FALSE"); | 1120 | cfg.writeEntry("Thumbnails",valShowThumbnails?"TRUE":"FALSE"); |
1121 | 1121 | ||
1122 | fileView->updateDir(); | 1122 | fileView->updateDir(); |
1123 | } | 1123 | } |
1124 | 1124 | ||
1125 | void FileBrowser::cleanUp() { | 1125 | void FileBrowser::cleanUp() { |
1126 | QString cmdr = "rm -rf /tmp/filebrowserThumbnailCache"; | 1126 | QString cmdr = "rm -rf /tmp/filebrowserThumbnailCache"; |
1127 | // qDebug("exit"); | 1127 | // qDebug("exit"); |
1128 | system(cmdr.latin1()); | 1128 | system(cmdr.latin1()); |
1129 | } | 1129 | } |