author | llornkcor <llornkcor> | 2002-05-07 00:14:17 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-07 00:14:17 (UTC) |
commit | c9849cc04b668f1cda7a16d868299c436d1de042 (patch) (side-by-side diff) | |
tree | cc9ff9565931bec34602468b5335e19ed2b3d662 | |
parent | f046179d3b49c44896298aa86380046a21394bbc (diff) | |
download | opie-c9849cc04b668f1cda7a16d868299c436d1de042.zip opie-c9849cc04b668f1cda7a16d868299c436d1de042.tar.gz opie-c9849cc04b668f1cda7a16d868299c436d1de042.tar.bz2 |
Fix for Sharp rom not having the Properties class
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index b9e254e..18952c3 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -685,4 +685,5 @@ void AdvancedFm::showLocalMenu(QListViewItem * item) m.insertSeparator(); m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); + if( QFile(QPEApplication::qpeDir()+"lib/libopie.so").exists() ) //bad hack for Sharp zaurus failings m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); m.setCheckable(TRUE); @@ -721,4 +722,5 @@ void AdvancedFm::showRemoteMenu(QListViewItem * item) m.insertSeparator(); m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); + if( QFile(QPEApplication::qpeDir()+"lib/libopie.so").exists() ) //bad hack for Sharp zaurus failings m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); m.setCheckable(TRUE); @@ -1057,9 +1059,12 @@ void AdvancedFm::doProperties() { QString filePath; if (TabWidget->currentPageIndex() == 0) { + filePath = currentDir.canonicalPath()+"/"; } else { filePath= currentRemoteDir.canonicalPath()+"/"; } + // qDebug("%d",curFileList.count()); for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { + qDebug((filePath+*it)); DocLnk lnk( (filePath+*it)); LnkProperties prop( &lnk ); |