kwalletmanager: adjust to Katie changes

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-12-17 03:22:04 +00:00
parent ceba21c739
commit 4d11ad9d72
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ QString KWalletConfig::newWallet() {
return QString();
}
KWallet::Wallet *w = KWallet::Wallet::openWallet(n, topLevelWidget()->winId());
KWallet::Wallet *w = KWallet::Wallet::openWallet(n, window()->winId());
if (!w) {
return QString();
}

View file

@ -269,7 +269,7 @@ void KWalletItem::processDropEvent(QDropEvent *e) {
if (em->hasFormat(QLatin1String("application/x-kwallet-folder")) ||
em->hasFormat(QLatin1String("text/uri-list"))) {
// FIXME: don't allow the drop if the wallet name is the same
KWallet::Wallet *_wallet = KWallet::Wallet::openWallet(text(), listWidget()->topLevelWidget()->winId());
KWallet::Wallet *_wallet = KWallet::Wallet::openWallet(text(), listWidget()->window()->winId());
if (!_wallet) {
e->ignore();
return;