Commit e0ec78c3 authored by Christophe Devriese's avatar Christophe Devriese

prevents crash when part is not found or pdf couldn't be opened,

also nothing will be added to recent files in that case
thx domi

svn path=/trunk/kdegraphics/kpdf/; revision=275961
parent 4bc928e1
......@@ -81,8 +81,7 @@ Shell::~Shell()
void Shell::openURL( const KURL & url )
{
m_part->openURL( url );
recent->addURL (url);
if ( m_part->openURL( url ) ) recent->addURL (url);
}
......
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