| Summary: | Find path is shown as encoded | ||
|---|---|---|---|
| Product: | [Applications] kfind | Reporter: | Andrey Cherepanov <sibskull> |
| Component: | general | Assignee: | Eric Coquelle <coquelle> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 0.5.2 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Andrey Cherepanov
2004-10-08 10:31:35 UTC
My comments to a problem number two: Problem not only with Russian symbols, but also with latin. $ kfind /very/very/long/path/string SVN commit 607846 by mkoller:
BUG: 90953
use and show prettyURL() instead of url() in "Look in:" field
M +6 -6 kftabdlg.cpp
--- branches/KDE/3.5/kdebase/kfind/kftabdlg.cpp #607845:607846
@@ -390,15 +390,15 @@
dirBox->insertStringList(sl);
// If the _searchPath already exists in the list we do not
// want to add it again
- int indx = sl.findIndex(m_url.url());
+ int indx = sl.findIndex(m_url.prettyURL());
if(indx == -1)
- dirBox->insertItem(m_url.url(), 0); // make it the first one
+ dirBox->insertItem(m_url.prettyURL(), 0); // make it the first one
else
dirBox->setCurrentItem(indx);
}
else {
QDir m_dir("/lib");
- dirBox ->insertItem( m_url.url() );
+ dirBox ->insertItem( m_url.prettyURL() );
dirBox ->insertItem( "file:" + QDir::homeDirPath() );
dirBox ->insertItem( "file:/" );
dirBox ->insertItem( "file:/usr" );
@@ -472,15 +472,15 @@
dirBox->insertStringList(sl);
// If the _searchPath already exists in the list we do not
// want to add it again
- int indx = sl.findIndex(m_url.url());
+ int indx = sl.findIndex(m_url.prettyURL());
if(indx == -1)
- dirBox->insertItem(m_url.url(), 0); // make it the first one
+ dirBox->insertItem(m_url.prettyURL(), 0); // make it the first one
else
dirBox->setCurrentItem(indx);
}
else {
QDir m_dir("/lib");
- dirBox ->insertItem( m_url.url() );
+ dirBox ->insertItem( m_url.prettyURL() );
dirBox ->insertItem( "file:" + QDir::homeDirPath() );
dirBox ->insertItem( "file:/" );
dirBox ->insertItem( "file:/usr" );
|