KWallet::openWallet and 0-WinId ?

Albert Astals Cid aacid at kde.org
Mon May 1 21:01:16 UTC 2017


El dilluns, 1 de maig de 2017, a les 17:33:00 CEST, Martin Koller va escriure:
> Hi,
> 
> the Wallet::openWallet() documentation says for the WinId argument:
> "The window id to associate any dialogs with. You can pass 0 if you don't
> have a window the password dialog should associate with."
> 
> However passing 0 gives a runtime warning
>         qDebug() << "Pass a valid window to KWallet::Wallet::openWallet().";
> 
> So what is correct ?

Both?

I mean it works, but it's not optimal.

That qDebug probably needs to be a qcDebug though.

Cheers,
  Albert

> openWallet() is used by a lot PIM resources and all these show the warning
> when akonaditray is not registered on the DBUS (which means winId is passed
> as 0)




More information about the Kde-frameworks-devel mailing list