summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofileselector.cpp
Side-by-side diff
Diffstat (limited to 'libopie/ofileselector/ofileselector.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector/ofileselector.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/libopie/ofileselector/ofileselector.cpp b/libopie/ofileselector/ofileselector.cpp
index 255e79e..9ce07dd 100644
--- a/libopie/ofileselector/ofileselector.cpp
+++ b/libopie/ofileselector/ofileselector.cpp
@@ -264,4 +264,2 @@ void OFileSelector::setPopupFactory(OPopupMenuFactory */*popup*/ )
-//void OFileSelector::updateL
-
QString OFileSelector::selectedName() const
@@ -273,7 +271,3 @@ QString OFileSelector::selectedName() const
}else {
- if ( m_shLne ) {
- name = m_currentDir + "/" +m_edit->text();
- }else{
- name = m_currentDir + "/" + currentView()->selectedName();
- }
+ name = currentLister()->selectedName();
}
@@ -424,3 +418,2 @@ void OFileSelector::slotLocationActivated(const QString &file)
cd(name );
- reparse();
}
@@ -456,4 +449,2 @@ void OFileSelector::locationComboChanged()
cd( m_location->lineEdit()->text() );
-
- reparse();
}
@@ -856,2 +847,4 @@ void OFileSelector::cdUP()
{
+ // FIXME won't work on non filesystem based systems
+ // better call the Olister
QDir dir( m_currentDir );
@@ -864,4 +857,2 @@ void OFileSelector::cdUP()
m_location->setCurrentItem( indexByString( m_location, m_currentDir));
- //this wont work in all instances
- // FIXME
}