summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp5
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
@@ -683,8 +683,9 @@ void AdvancedFm::showLocalMenu(QListViewItem * item)
683 m.insertSeparator(); 683 m.insertSeparator();
684 m.insertItem( tr( "Delete" ), this, SLOT( localDelete() )); 684 m.insertItem( tr( "Delete" ), this, SLOT( localDelete() ));
685 m.insertSeparator(); 685 m.insertSeparator();
686 m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); 686 m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() ));
687 if( QFile(QPEApplication::qpeDir()+"lib/libopie.so").exists() ) //bad hack for Sharp zaurus failings
687 m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); 688 m.insertItem( tr( "Properties" ), this, SLOT( doProperties() ));
688 m.setCheckable(TRUE); 689 m.setCheckable(TRUE);
689 if (!b) 690 if (!b)
690 m.setItemChecked(m.idAt(0),TRUE); 691 m.setItemChecked(m.idAt(0),TRUE);
@@ -719,8 +720,9 @@ void AdvancedFm::showRemoteMenu(QListViewItem * item)
719 m.insertSeparator(); 720 m.insertSeparator();
720 m.insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); 721 m.insertItem( tr( "Delete" ), this, SLOT( remoteDelete() ));
721 m.insertSeparator(); 722 m.insertSeparator();
722 m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); 723 m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() ));
724 if( QFile(QPEApplication::qpeDir()+"lib/libopie.so").exists() ) //bad hack for Sharp zaurus failings
723 m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); 725 m.insertItem( tr( "Properties" ), this, SLOT( doProperties() ));
724 m.setCheckable(TRUE); 726 m.setCheckable(TRUE);
725 if (!b) 727 if (!b)
726 m.setItemChecked(m.idAt(0),TRUE); 728 m.setItemChecked(m.idAt(0),TRUE);
@@ -1055,13 +1057,16 @@ void AdvancedFm::filePerms() {
1055void AdvancedFm::doProperties() { 1057void AdvancedFm::doProperties() {
1056 QStringList curFileList = getPath(); 1058 QStringList curFileList = getPath();
1057 QString filePath; 1059 QString filePath;
1058 if (TabWidget->currentPageIndex() == 0) { 1060 if (TabWidget->currentPageIndex() == 0) {
1061
1059 filePath = currentDir.canonicalPath()+"/"; 1062 filePath = currentDir.canonicalPath()+"/";
1060 } else { 1063 } else {
1061 filePath= currentRemoteDir.canonicalPath()+"/"; 1064 filePath= currentRemoteDir.canonicalPath()+"/";
1062 } 1065 }
1066 // qDebug("%d",curFileList.count());
1063 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { 1067 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) {
1068 qDebug((filePath+*it));
1064 DocLnk lnk( (filePath+*it)); 1069 DocLnk lnk( (filePath+*it));
1065 LnkProperties prop( &lnk ); 1070 LnkProperties prop( &lnk );
1066// connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *))); 1071// connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *)));
1067 prop.showMaximized(); 1072 prop.showMaximized();