cancel the loading loop on errors too

svn path=/trunk/KDE/kdegraphics/okular/; revision=922589
remotes/origin/old/work/record-presentation
Pino Toscano 17 years ago
parent cdc5bac016
commit c499bfb02d
  1. 1
      generators/chm/generator_chm.cpp

@ -169,6 +169,7 @@ void CHMGenerator::preparePageForSyncOperation( int zoom , const QString & url)
QEventLoop loop;
connect( m_syncGen, SIGNAL( completed() ), &loop, SLOT( quit() ) );
connect( m_syncGen, SIGNAL( canceled( QString ) ), &loop, SLOT( quit() ) );
// discard any user input, otherwise it breaks the "synchronicity" of this
// function
loop.exec( QEventLoop::ExcludeUserInputEvents );

Loading…
Cancel
Save