Try harder to find an appropriate parent for the kwallet password

dialog.

Based on a suggestion of Lubos, should fix #133861 and might also help
with #131756.

BUG: 133861
CCBUG: 131756

svn path=/branches/KDE/3.5/kdepim/; revision=593938
wilder-work
Volker Krause 20 years ago
parent 17459ed6fc
commit 1d6591c317
  1. 10
      kmkernel.cpp

@ -2247,9 +2247,15 @@ Wallet *KMKernel::wallet() {
if ( !Wallet::isEnabled() || walletOpenFailed )
return 0;
// find an appropriate parent window for the wallet dialog
WId window = 0;
if ( qApp->activeWindow() )
window = qApp->activeWindow()->winId();
else if ( getKMMainWidget() )
window = getKMMainWidget()->topLevelWidget()->winId();
delete mWallet;
mWallet = Wallet::openWallet( Wallet::NetworkWallet(),
getKMMainWidget() ? getKMMainWidget()->topLevelWidget()->winId() : 0 );
mWallet = Wallet::openWallet( Wallet::NetworkWallet(), window );
if ( !mWallet ) {
walletOpenFailed = true;

Loading…
Cancel
Save