summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/filesystem.cpp10
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
@@ -2,7 +2,7 @@
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
@@ -37,6 +37,14 @@ PFileSystem::~PFileSystem() {
37void PFileSystem::changed() { 37void 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 ) {