-rw-r--r-- | core/launcher/launcher.cpp | 1 | ||||
-rw-r--r-- | core/launcher/mediummountgui.cpp | 1 | ||||
-rw-r--r-- | libopie/oconfig.h | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index dcc3ba1..1c38a05 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp @@ -532,32 +532,33 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global:: OConfig cfg( (*it)->path() + "/.opiestorage.cf"); cfg.setGroup("main"); QString stamp = cfg.readEntry("timestamp", QDateTime::currentDateTime().toString() ); if( stamp == m_timeStamp ){ // ok we know this card qWarning("time stamp match" ); cfg.writeEntry("timestamp", newStamp ); // we need to scan the list now. Hopefully the cache will be there }else{ // come up with the gui qWarning("time stamp doesn't match" ); MediumMountGui medium((*it)->path() ); qWarning("medium mount gui created" ); if( medium.check() ){ qWarning("need to check this device" ); if( medium.exec() ){ //ok // speicher qWarning("execed" ); + cfg.read(); cfg.writeEntry("timestamp", newStamp ); } }else{ qWarning("wrong :(" ); // do something different see what we need to do } } } } qWarning("findDocuments" ); Global::findDocuments(docsFolder); // get rid of this call later qWarning("done" ); m_timeStamp = newStamp; } void Launcher::updateTabs() diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp index 5225711..e3fa5bd 100644 --- a/core/launcher/mediummountgui.cpp +++ b/core/launcher/mediummountgui.cpp @@ -87,32 +87,33 @@ void MediumMountGui::writeConfig(bool autocheck) { if (checkmimeaudio) { mimeTypeList += ("audio//*"); } if (checkmimetext) { mimeTypeList += ("text//*"); } if (checkmimevideo) { mimeTypeList += ("video//*"); } if (checkmimeimage) { mimeTypeList += ("image//*"); } if (checkmimeall) { mimeTypeList << ("null"); } } + cfg.write(); } void MediumMountGui::startGui() { QPixmap image = Resource::loadPixmap( "HelpBrowser"); Text_2 = new QLabel( this ); Text_2->setGeometry( QRect( 10, 15, 40, 40 ) ); Text_2->setPixmap( image ); Text = new QLabel( this, "Text" ); Text->setGeometry( QRect( 55, 11, this->width()-50, 50 ) ); Text->setText( tr( "A <b>storage medium</b> was inserted. Should it be scanned for media files?" ) ); // media box GroupBox1 = new QGroupBox( this, "GroupBox1" ); diff --git a/libopie/oconfig.h b/libopie/oconfig.h index c97fb6a..f6227d1 100644 --- a/libopie/oconfig.h +++ b/libopie/oconfig.h @@ -28,21 +28,21 @@ #include <qpe/config.h> #ifndef opieconfig_h #define opieconfig_h /** It supports all Config items + it lets you decide * which file to use. */ class OConfig : public Config { public: OConfig( const QString &filename ); ~OConfig(); QString fileName() const; - + void read( ) { Config::read(); }; }; #endif |