Index: graphics/okular/files/patch-shell-shell.cpp =================================================================== --- graphics/okular/files/patch-shell-shell.cpp (nonexistent) +++ graphics/okular/files/patch-shell-shell.cpp (working copy) @@ -0,0 +1,29 @@ +--- shell/shell.cpp.orig 2018-05-06 04:09:02 UTC ++++ shell/shell.cpp +@@ -211,7 +211,7 @@ bool Shell::openDocument( const QUrl& url, const QStri + 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(part)->openNewFilesInTabs() ++ if ( !qobject_cast(part)->openNewFilesInTabs() + && !part->url().isEmpty() + && !ShellUtils::unique(serializedOptions)) + { +@@ -234,7 +234,7 @@ bool Shell::canOpenDocs( int numDocs, int desktop ) + return false; + + KParts::ReadWritePart* const part = m_tabs[0].part; +- const bool allowTabs = dynamic_cast(part)->openNewFilesInTabs(); ++ const bool allowTabs = qobject_cast(part)->openNewFilesInTabs(); + + if( !allowTabs && (numDocs > 1 || !part->url().isEmpty()) ) + return false; +@@ -261,7 +261,7 @@ void Shell::openUrl( const QUrl & url, const QString & + } + else + { +- if( dynamic_cast(activePart)->openNewFilesInTabs() ) ++ if( qobject_cast(activePart)->openNewFilesInTabs() ) + { + openNewTab( url, serializedOptions ); + } Property changes on: graphics/okular/files/patch-shell-shell.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property