author | harlekin <harlekin> | 2003-04-18 21:15:41 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-18 21:15:41 (UTC) |
commit | c667951bfeaa17136bc828380e38062e150b2762 (patch) (unidiff) | |
tree | f9f9e5c9dbad7a91977f78b3ad413e8d8266e523 | |
parent | 486db3bff8680e22bade85c348a7673f847a6f37 (diff) | |
download | opie-c667951bfeaa17136bc828380e38062e150b2762.zip opie-c667951bfeaa17136bc828380e38062e150b2762.tar.gz opie-c667951bfeaa17136bc828380e38062e150b2762.tar.bz2 |
removed exerimental stuff I accidently commited
-rw-r--r-- | core/launcher/launcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 3eb561a..bcc2495 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -787,63 +787,63 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global:: | |||
787 | } // done | 787 | } // done |
788 | return; // save the else | 788 | return; // save the else |
789 | } | 789 | } |
790 | // c) zecke | 790 | // c) zecke |
791 | for ( it.toFirst(); it.current(); ++it ) { | 791 | for ( it.toFirst(); it.current(); ++it ) { |
792 | if ( (*it)->isRemovable() ) { // let's find out if we should search on it | 792 | if ( (*it)->isRemovable() ) { // let's find out if we should search on it |
793 | Config cfg( (*it)->path() + "/.opiestorage.cf", Config::File); | 793 | Config cfg( (*it)->path() + "/.opiestorage.cf", Config::File); |
794 | cfg.setGroup("main"); | 794 | cfg.setGroup("main"); |
795 | QString stamp = cfg.readEntry("timestamp", QDateTime::currentDateTime().toString() ); | 795 | QString stamp = cfg.readEntry("timestamp", QDateTime::currentDateTime().toString() ); |
796 | /** This medium is uptodate | 796 | /** This medium is uptodate |
797 | */ | 797 | */ |
798 | if( stamp == m_timeStamp ){ // ok we know this card | 798 | if( stamp == m_timeStamp ){ // ok we know this card |
799 | cfg.writeEntry("timestamp", newStamp ); //just write a new timestamp | 799 | cfg.writeEntry("timestamp", newStamp ); //just write a new timestamp |
800 | // we need to scan the list now. Hopefully the cache will be there | 800 | // we need to scan the list now. Hopefully the cache will be there |
801 | // read the mimetypes from the config and search for documents | 801 | // read the mimetypes from the config and search for documents |
802 | QStringList mimetypes = configToMime( &cfg); | 802 | QStringList mimetypes = configToMime( &cfg); |
803 | qApp->processEvents(); | 803 | //qApp->processEvents(); |
804 | Global::statusMessage( tr( "Searching documents" ) ); | 804 | Global::statusMessage( tr( "Searching documents" ) ); |
805 | tmp = new DocLnkSet( (*it)->path(), mimetypes.join(";") ); | 805 | tmp = new DocLnkSet( (*it)->path(), mimetypes.join(";") ); |
806 | docsFolder->appendFrom( *tmp ); | 806 | docsFolder->appendFrom( *tmp ); |
807 | delete tmp; | 807 | delete tmp; |
808 | 808 | ||
809 | }else{ // come up with the gui cause this a new card | 809 | }else{ // come up with the gui cause this a new card |
810 | MediumMountGui medium(&cfg, (*it)->path() ); | 810 | MediumMountGui medium(&cfg, (*it)->path() ); |
811 | if( medium.check() ){ // we did not ask before or ask again is off | 811 | if( medium.check() ){ // we did not ask before or ask again is off |
812 | /** c2) */ | 812 | /** c2) */ |
813 | if( medium.exec() ){ // he clicked yes so search it | 813 | if( medium.exec() ){ // he clicked yes so search it |
814 | // speicher | 814 | // speicher |
815 | //cfg.read(); // cause of a race we need to reread - fixed | 815 | //cfg.read(); // cause of a race we need to reread - fixed |
816 | cfg.setGroup("main"); | 816 | cfg.setGroup("main"); |
817 | cfg.writeEntry("timestamp", newStamp ); | 817 | cfg.writeEntry("timestamp", newStamp ); |
818 | cfg.write(); | 818 | cfg.write(); |
819 | 819 | ||
820 | qApp->processEvents(); | 820 | //qApp->processEvents(); |
821 | tmp = new DocLnkSet( (*it)->path(), medium.mimeTypes().join(";" ) ); | 821 | tmp = new DocLnkSet( (*it)->path(), medium.mimeTypes().join(";" ) ); |
822 | docsFolder->appendFrom( *tmp ); | 822 | docsFolder->appendFrom( *tmp ); |
823 | delete tmp; | 823 | delete tmp; |
824 | }// no else | 824 | }// no else |
825 | /** c1) */ | 825 | /** c1) */ |
826 | }else{ // we checked | 826 | }else{ // we checked |
827 | // do something different see what we need to do | 827 | // do something different see what we need to do |
828 | // let's see if we should check the device | 828 | // let's see if we should check the device |
829 | cfg.setGroup("main" ); | 829 | cfg.setGroup("main" ); |
830 | bool check = cfg.readBoolEntry("autocheck", true ); | 830 | bool check = cfg.readBoolEntry("autocheck", true ); |
831 | if( check ){ // find the documents | 831 | if( check ){ // find the documents |
832 | 832 | ||
833 | qApp->processEvents(); | 833 | //qApp->processEvents(); |
834 | Global::statusMessage( tr( "Searching documents" ) ); | 834 | Global::statusMessage( tr( "Searching documents" ) ); |
835 | tmp = new DocLnkSet( (*it)->path(), configToMime(&cfg ).join(";") ); | 835 | tmp = new DocLnkSet( (*it)->path(), configToMime(&cfg ).join(";") ); |
836 | docsFolder->appendFrom( *tmp ); | 836 | docsFolder->appendFrom( *tmp ); |
837 | delete tmp; | 837 | delete tmp; |
838 | } | 838 | } |
839 | } | 839 | } |
840 | } | 840 | } |
841 | } | 841 | } |
842 | } | 842 | } |
843 | m_timeStamp = newStamp; | 843 | m_timeStamp = newStamp; |
844 | owait->hide(); | 844 | owait->hide(); |
845 | delete owait; | 845 | delete owait; |
846 | } | 846 | } |
847 | 847 | ||
848 | void Launcher::updateTabs() | 848 | void Launcher::updateTabs() |
849 | { | 849 | { |