summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp1
-rw-r--r--core/launcher/launcher.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index 222592b..b26bd8b 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -514,24 +514,25 @@ void Launcher::loadDocs() // ok here comes a hack belonging to Global::
if ( (*it)->isRemovable() ) { // let's find out if we should search on it
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
cfg.writeEntry("timestamp", newStamp );
// we need to scan the list now. Hopefully the cache will be there
}else{ // come up with the gui
MediumMountGui medium((*it)->path() + "/.opiestorage.cf" );
if( medium.check() ){
if( medium.exec() ){ //ok
// speicher
+ cfg.writeEntry("timestamp", newStamp );
}
}else{
// do something different see what we need to do
}
}
}
}
Global::findDocuments(docsFolder); // get rid of this call later
m_timeStamp = newStamp;
}
void Launcher::updateTabs()
diff --git a/core/launcher/launcher.h b/core/launcher/launcher.h
index 00ae980..197bd19 100644
--- a/core/launcher/launcher.h
+++ b/core/launcher/launcher.h
@@ -122,15 +122,17 @@ private:
void updateMimeTypes(AppLnkSet*);
void preloadApps();
AppLnkSet *rootFolder;
DocLnkSet *docsFolder;
CategoryTabWidget *tabs;
StorageInfo *storage;
SyncDialog *syncDialog;
void updateLink(const QString& link);
bool in_lnk_props;
bool got_lnk_change;
QString lnk_change;
+ QString m_timeStamp;
};
#endif // LAUNCHERVIEW_H
+