Summary: | when creating a link to an URL the name is set to the URL | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Gustavo Pichorim Boiko <gustavo.boiko> |
Component: | general | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Conectiva RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
Path to set the name to the filename
Path to set the name to the filename |
Description
Gustavo Pichorim Boiko
2004-03-01 17:47:03 UTC
Created attachment 4959 [details]
Path to set the name to the filename
This patch to libkonq/knewmenu.cc fixes this problem. It puts the filename in
the Name entry of the desktop file. I think this is the right way to solve this
problem.
Created attachment 4960 [details]
Path to set the name to the filename
This patch to libkonq/knewmenu.cc fixes this problem. It puts the filename in
the Name entry of the desktop file. I think this is the right way to solve this
problem.
*** Bug 76516 has been marked as a duplicate of this bug. *** This makes the Name all ugly with %2F stuff. Just leaving the name out actually seems to work better. CVS commit by waba: Don't put a Name in the .desktop file for a "Link to Location", it will default to the file name just fine and it can't be edited anyway. (BR76517) CCMAIL: coolo@suse.de,76517-done@bugs.kde.org M +0 -1 knewmenu.cc 1.92.2.1 --- kdebase/libkonq/knewmenu.cc #1.92:1.92.2.1 @@ -473,5 +473,4 @@ void KNewMenu::slotResult( KIO::Job * jo kdDebug(1203) << " destURL=" << destURL.path() << " " << " d->m_destPath=" << d->m_destPath << endl; KDesktopFile df( d->m_destPath ); - df.writeEntry( "Name", m_linkURL ); df.writeEntry( "Icon", KProtocolInfo::icon( KURL(m_linkURL).protocol() ) ); df.writePathEntry( "URL", m_linkURL ); |