diff --git a/ui/toc.cpp b/ui/toc.cpp index ac9e4fad4..c06342821 100644 --- a/ui/toc.cpp +++ b/ui/toc.cpp @@ -75,7 +75,7 @@ uint TOC::observerId() const void TOC::notifySetup( const QVector< KPDFPage * > & pages, bool documentChanged ) { - if ( !documentChanged || pages.size() < 1 ) + if ( !documentChanged ) return; // clear contents