[PATCH] Re: what's the reason for: Fatal error: you need to have a KInstance object before

Waldo Bastian bastian at kde.org
Wed Jan 21 22:08:21 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed January 21 2004 22:55, Waldo Bastian wrote:
> On Wed January 21 2004 22:09, David Faure wrote:
> > On Wednesday 21 January 2004 21:49, David Faure wrote:
> > > On Wednesday 21 January 2004 21:44, Alexander Neundorf wrote:
> > > > > kde32 at linux:~> fuse_kio /home/kde32/ttt fish://snowbird@localhost/
> > > > > Fatal error: you need to have a KInstance object before
> > > > > you do anything that requires it! Examples of this are config
> > > > > objects, standard directories or translations.
> > > >
> > > > The error seems to happen in the call to args->url(1).
> >
> > Ah I see the problem: the addition of the KProtocolInfo::uriParseMode
> > call in KURL::uriModeForProtocol means that KURL requires KStandardDirs
> > now. (due to the locate() call in KProtocolInfo::KProtocolInfo)
> >
> > Hmm. KURL used to be simple... :)
> > Waldo: do you think KURL could default to a "safe" or "most common" mode
> > if KGlobal::_instance == 0 ?
>
> Yes, it certainly should.

Please test.

Cheers,
Waldo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFADvhVN4pvrENfboIRAnfyAJ9354sx2mIGTgpV/R/PrmVF3eYkiQCgklw7
GPyI+qEhRua4VfdmoXq6FEw=
=3l4w
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kurl.patch
Type: text/x-diff
Size: 629 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040121/2b95f20c/attachment.patch>


More information about the kde-core-devel mailing list