Diffstat (limited to 'libopie/ofileselector/ofileselector.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileselector.cpp | 15 |
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 @@ -263,6 +263,4 @@ void OFileSelector::setPopupFactory(OPopupMenuFactory */*popup*/ ) } -//void OFileSelector::updateL - QString OFileSelector::selectedName() const { @@ -272,9 +270,5 @@ QString OFileSelector::selectedName() const name = lnk.file(); }else { - if ( m_shLne ) { - name = m_currentDir + "/" +m_edit->text(); - }else{ - name = m_currentDir + "/" + currentView()->selectedName(); - } + name = currentLister()->selectedName(); } return name; @@ -423,5 +417,4 @@ void OFileSelector::slotLocationActivated(const QString &file) else cd(name ); - reparse(); } void OFileSelector::slotInsertLocationPath(const QString ¤tPath, int count) @@ -455,6 +448,4 @@ void OFileSelector::locationComboChanged() else cd( m_location->lineEdit()->text() ); - - reparse(); } void OFileSelector::init() @@ -855,4 +846,6 @@ void OFileSelector::slotDelete() void OFileSelector::cdUP() { + // FIXME won't work on non filesystem based systems + // better call the Olister QDir dir( m_currentDir ); dir.cdUp(); @@ -863,6 +856,4 @@ void OFileSelector::cdUP() slotInsertLocationPath( m_currentDir, count); m_location->setCurrentItem( indexByString( m_location, m_currentDir)); - //this wont work in all instances - // FIXME } } |