diff --git a/part.cpp b/part.cpp index 74fb86c48..cc5d3bdc3 100644 --- a/part.cpp +++ b/part.cpp @@ -564,6 +564,7 @@ bool Part::openURL(const KUrl &url) m_viewportDirty = 0; else KMessageBox::error( widget(), i18n( "Could not open %1", url.prettyURL() ) ); + emit enablePrintAction(openOk); return openOk; } diff --git a/shell/shell.cpp b/shell/shell.cpp index 86527d4b8..14fad2cd3 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -128,7 +128,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 ); } }