Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8583cda5 authored by Pino Toscano's avatar Pino Toscano

recent files: do not add '-' (aka stdin) when reading a document from it

svn path=/trunk/KDE/kdegraphics/okular/; revision=882131
parent f6828bab
......@@ -134,8 +134,14 @@ void Shell::openUrl( const KUrl & url, uint page )
if ( m_doc && m_args && m_args->isSet( "presentation" ) )
m_doc->startPresentation();
bool openOk = page > 0 && m_doc ? m_doc->openDocument( url, page ) : m_part->openUrl( url );
if ( openOk ) m_recent->addUrl( url );
else m_recent->removeUrl( url );
const bool isstdin = url.fileName( KUrl::ObeyTrailingSlash ) == QLatin1String( "-" );
if ( !isstdin )
{
if ( openOk )
m_recent->addUrl( url );
else
m_recent->removeUrl( 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