author | alwin <alwin> | 2004-02-22 21:40:20 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-22 21:40:20 (UTC) |
commit | caa64a311d665e4d5c75cc9d45e0b3cd8ef2fdf1 (patch) (unidiff) | |
tree | ef464310a07582a7179a4d136b555b806f43fe1a /core/launcher/documentlist.cpp | |
parent | 936fc191ac5756a4de2e8b2a83c8bc910f918b95 (diff) | |
download | opie-caa64a311d665e4d5c75cc9d45e0b3cd8ef2fdf1.zip opie-caa64a311d665e4d5c75cc9d45e0b3cd8ef2fdf1.tar.gz opie-caa64a311d665e4d5c75cc9d45e0b3cd8ef2fdf1.tar.bz2 |
when inserting a new media without .opiestorage.cf a dialog comes
setting up this file.
Diffstat (limited to 'core/launcher/documentlist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/documentlist.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/launcher/documentlist.cpp b/core/launcher/documentlist.cpp index 9736e65..39dc7c9 100644 --- a/core/launcher/documentlist.cpp +++ b/core/launcher/documentlist.cpp | |||
@@ -16,12 +16,13 @@ | |||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "documentlist.h" | 20 | #include "documentlist.h" |
21 | #include "serverinterface.h" | 21 | #include "serverinterface.h" |
22 | #include "mediadlg.h" | ||
22 | 23 | ||
23 | #include <opie2/oglobal.h> | 24 | #include <opie2/oglobal.h> |
24 | 25 | ||
25 | #include <qtopia/config.h> | 26 | #include <qtopia/config.h> |
26 | #include <qtopia/mimetype.h> | 27 | #include <qtopia/mimetype.h> |
27 | #include <qtopia/resource.h> | 28 | #include <qtopia/resource.h> |
@@ -431,16 +432,16 @@ DocumentListPrivate::DocumentListPrivate( ServerInterface *gui ) | |||
431 | 432 | ||
432 | void DocumentListPrivate::appendDocpath(FileSystem*fs) | 433 | void DocumentListPrivate::appendDocpath(FileSystem*fs) |
433 | { | 434 | { |
434 | QDir defPath(fs->path()+"/Documents"); | 435 | QDir defPath(fs->path()+"/Documents"); |
435 | QFileInfo f(fs->path()+"/.opiestorage.cf"); | 436 | QFileInfo f(fs->path()+"/.opiestorage.cf"); |
436 | if (!f.exists()) { | 437 | if (!f.exists()) { |
437 | if (defPath.exists()) { | 438 | Mediadlg dlg(fs); |
438 | docPaths+=defPath.path(); | 439 | if (QDialog::Accepted != QPEApplication::execDialog( &dlg )) { |
440 | return; | ||
439 | } | 441 | } |
440 | return; | ||
441 | } | 442 | } |
442 | Config conf(f.filePath(), Config::File ); | 443 | Config conf(f.filePath(), Config::File ); |
443 | conf.setGroup("subdirs"); | 444 | conf.setGroup("subdirs"); |
444 | bool read_all = conf.readBoolEntry("wholemedia",true); | 445 | bool read_all = conf.readBoolEntry("wholemedia",true); |
445 | if (read_all) { | 446 | if (read_all) { |
446 | docPaths+=fs->path(); | 447 | docPaths+=fs->path(); |