summaryrefslogtreecommitdiff
authoralwin <alwin>2004-04-16 13:44:24 (UTC)
committer alwin <alwin>2004-04-16 13:44:24 (UTC)
commit3e60dc2a9bd0860feae3ebebdfd5f25ad3ce3b13 (patch) (unidiff)
treec6d15d442a8b215028e5bd8304a6e162f6441294
parentb3e021e78a34be7abc4002a6b913dce9fcc28cd8 (diff)
downloadopie-3e60dc2a9bd0860feae3ebebdfd5f25ad3ce3b13.zip
opie-3e60dc2a9bd0860feae3ebebdfd5f25ad3ce3b13.tar.gz
opie-3e60dc2a9bd0860feae3ebebdfd5f25ad3ce3b13.tar.bz2
the home directory will inside the pathlisting, too.
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
@@ -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
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 ) {
43 const QString disk = (*it)->name(); 51 const QString disk = (*it)->name();