diff --git a/part.cpp b/part.cpp index 7663e28ef..eb82d00d6 100644 --- a/part.cpp +++ b/part.cpp @@ -457,6 +457,7 @@ bool Part::openURL(const KUrl &url) KMessageBox::error( widget(), i18n("Could not open %1", url.prettyURL() ) ); else m_viewportDirty.pageNumber = -1; + emit enablePrintAction(b); return b; } diff --git a/shell/shell.cpp b/shell/shell.cpp index 7beedd28f..d0c17c1fe 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -119,7 +119,6 @@ void Shell::openURL( const KUrl & url ) bool openOk = m_part->openURL( url ); if ( openOk ) m_recent->addURL( url ); else m_recent->removeURL( url ); - m_printAction->setEnabled( openOk ); } }