mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
okular: cast the part pointer via qobject_cast<T>() in Shell::openDocument()
fixes crash on startup on FreeBSD Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4b35e5a843
commit
7cc37bd444
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ bool Shell::openDocument( const QString& url, const QString &serializedOptions )
|
|||
KParts::ReadWritePart* const part = m_tabs[0].part;
|
||||
|
||||
// Return false if we can't open new tabs and the only part is occupied
|
||||
if ( !dynamic_cast<Okular::ViewerInterface*>(part)->openNewFilesInTabs()
|
||||
if ( !qobject_cast<Okular::ViewerInterface*>(part)->openNewFilesInTabs()
|
||||
&& !part->url().isEmpty()
|
||||
&& !ShellUtils::unique(serializedOptions))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue