Commit 2d7f6d63 authored by Albert Astals Cid's avatar Albert Astals Cid

workaround Qt4.4 buginess

BUGS: 161737

svn path=/trunk/KDE/kdegraphics/okular/; revision=805167
parent 219a20e1
......@@ -331,7 +331,7 @@ bool PDFGenerator::init(QVector<Okular::Page*> & pagesVector, const QString &wal
QString walletName = KWallet::Wallet::NetworkWallet();
WId parentwid = 0;
if ( document() && document()->widget() )
parentwid = document()->widget()->winId();
parentwid = document()->widget()->effectiveWinId();
wallet = KWallet::Wallet::openWallet( walletName, parentwid );
if ( wallet )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment