support for remote projects (fish / ftp / etc.)

Andreas Pakulat apaku at gmx.de
Wed Mar 25 19:31:40 UTC 2009


On 25.03.09 20:19:03, Milian Wolff wrote:
> On Tuesday 24 March 2009, Andreas Pakulat wrote:
> > On 24.03.09 21:29:20, Milian Wolff wrote:
> > >          statJob = KIO::stat( developerFileUrl, KIO::HideProgressInfo );
> > >          if( !statJob->exec() )
> > >          {
> > > -            KUrl dir = KUrl( projectFileUrl.directory(
> > > KUrl::AppendTrailingSlash ) + ".kdev4"); +            KUrl dir =
> > > projectFileUrl;
> > > +            dir.setPath( dir.directory( KUrl::AppendTrailingSlash ) +
> > > ".kdev4" );
> >
> > You could use dir.addPath( ".kdev4" ) instead here.
> 
> Just ported the old code here. But yes, I could use addPath - would be 
> basically the same, just a line more, maybe a bit more readable.

Hmm, actually I thought we'd have the same amount of lines but clearer
code. But apparently my eyes saw something different than my brain. Its not
much clearer with addPath, so it can stay as is.

Andreas
 
-- 
A visit to a strange place will bring fresh work.




More information about the KDevelop-devel mailing list