| Summary: | fails to open a directory with parenthesis from tag editor | ||
|---|---|---|---|
| Product: | [Applications] amarok | Reporter: | richlv |
| Component: | general | Assignee: | Amarok Bugs <amarok-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Slackware | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
richlv
2006-08-25 11:19:52 UTC
Fixed in revision 596032.
Index: ChangeLog
===================================================================
--- ChangeLog (revision 595854)
+++ ChangeLog (working copy)
@@ -51,6 +51,8 @@
* Show a proper tag dialog when viewing information for DAAP music shares.
BUGFIXES:
+ * Fix loading directory in external browser in the tag editor when the path
+ contains parentheses. (BR 132961)
* Stop scripts using a proxy when it's disabled in KDE. Patch by Felix Geyer
<sniperbeamer_disc1@fobos.de>.
* While playing Last.fm Streams, sometimes metadata wouldn't be updated
Index: src/app.cpp
===================================================================
--- src/app.cpp (revision 595854)
+++ src/app.cpp (working copy)
@@ -1184,11 +1184,8 @@
bool invokeBrowser( const QString& url )
{
- const QString cmd = "%1 \"%2\"";
- QString cleanUrl( url );
- cleanUrl.replace( "(", "%28" ).replace( ")", "%29" );
- int pid = KRun::runCommand( cmd.arg( AmarokConfig::externalBrowser(), cleanUrl ) );
- return pid > 0;
+ //URL can be in whatever forms KURL::fromPathOrURL understands - ie most.
+ return KRun::run( AmarokConfig::externalBrowser(), KURL::List( KURL::fromPathOrURL( url ) ) ) > 0;
}
namespace ColorScheme
|