[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/kate/plugins/filebrowser
From: RafaĆ Rzepecki <divided.mind () gmail ! com>
Date: 2008-08-08 2:51:32
Message-ID: 1218163892.811634.31932.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 843822 by divide:
Allow relative paths in the combobox.
M +7 -5 katefileselector.cpp
--- trunk/KDE/kdesdk/kate/plugins/filebrowser/katefileselector.cpp #843821:843822
@@ -464,16 +464,18 @@
void ::KateFileSelector::cmbPathReturnPressed( const QString& u )
{
- KUrl typedURL( u );
- if ( typedURL.hasPass() )
- typedURL.setPass( QString() );
+ // construct so that relative urls are ok
+ KUrl typedURL( dir->url(), u );
+
+ //dir->setFocus(); // is it really useful to set focus here?
+ dir->setUrl( typedURL, true );
+ // strip password (noop if there's none)
+ typedURL.setPass( QString() );
QStringList urls = cmbPath->urls();
urls.removeAll( typedURL.url() );
urls.prepend( typedURL.url() );
cmbPath->setUrls( urls, KUrlComboBox::RemoveBottom );
- dir->setFocus();
- dir->setUrl( KUrl(u), true );
}
void ::KateFileSelector::dirUrlEntered( const KUrl& u )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic