-rw-r--r-- | noncore/graphics/opie-eye/gui/filesystem.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/filesystem.cpp b/noncore/graphics/opie-eye/gui/filesystem.cpp index 91bcf67..6f1c64a 100644 --- a/noncore/graphics/opie-eye/gui/filesystem.cpp +++ b/noncore/graphics/opie-eye/gui/filesystem.cpp | |||
@@ -1,9 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * GPLv2 zecke@handhelds.org | 2 | * GPLv2 zecke@handhelds.org |
3 | * No WArranty... | 3 | * No WArranty... |
4 | */ | 4 | */ |
5 | 5 | #include <stdlib.h> | |
6 | #include <qpopupmenu.h> | 6 | #include <qpopupmenu.h> |
7 | #include <qtoolbar.h> | 7 | #include <qtoolbar.h> |
8 | 8 | ||
9 | #include <qpe/resource.h> | 9 | #include <qpe/resource.h> |
@@ -36,8 +36,16 @@ PFileSystem::~PFileSystem() { | |||
36 | 36 | ||
37 | void PFileSystem::changed() { | 37 | void PFileSystem::changed() { |
38 | m_pop->clear(); | 38 | m_pop->clear(); |
39 | m_dev.clear(); | 39 | m_dev.clear(); |
40 | |||
41 | /* home dir, too */ | ||
42 | QString f = getenv( "HOME" ); | ||
43 | if (!f.isEmpty()) { | ||
44 | m_dev.insert("Home directory",f); | ||
45 | m_pop->insertItem("Home directory"); | ||
46 | } | ||
47 | |||
40 | const QList<FileSystem> &fs = m_storage->fileSystems(); | 48 | const QList<FileSystem> &fs = m_storage->fileSystems(); |
41 | QListIterator<FileSystem> it(fs ); | 49 | QListIterator<FileSystem> it(fs ); |
42 | for ( ; it.current(); ++it ) { | 50 | for ( ; it.current(); ++it ) { |
43 | const QString disk = (*it)->name(); | 51 | const QString disk = (*it)->name(); |