Index: head/graphics/okular/Makefile =================================================================== --- head/graphics/okular/Makefile (revision 469737) +++ head/graphics/okular/Makefile (revision 469738) @@ -1,37 +1,38 @@ # $FreeBSD$ PORTNAME= okular DISTVERSION= ${KDE_APPLICATIONS_VERSION} +PORTREVISION= 1 CATEGORIES= graphics kde kde-applications MAINTAINER= kde@FreeBSD.org COMMENT= KDE universal document viewer LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libchm.so:misc/chmlib \ libdjvulibre.so:graphics/djvulibre \ libepub.so:textproc/ebook-tools \ libfreetype.so:print/freetype2 \ libqmobipocket.so:graphics/kdegraphics-mobipocket \ libpoppler.so:graphics/poppler \ libpoppler-qt5.so:graphics/poppler-qt5 \ libqca-qt5.so:devel/qca@qt5 \ libspectre.so:print/libspectre \ libtiff.so:graphics/tiff \ libzip.so:archivers/libzip USES= cmake:outsource compiler:c++11-lib desktop-file-utils \ gettext jpeg kde:5 pkgconfig tar:xz USE_KDE= activities archive auth bookmarks codecs completion config \ configwidgets coreaddons dbusaddons ecm emoticons i18n \ iconthemes init itemmodels itemviews jobwidgets js \ kdelibs4support khtml kio libkexiv2 parts pty \ service solid sonnet textwidgets threadweaver wallet \ widgetsaddons windowsystem xmlgui USE_QT5= core dbus gui network phonon4 printsupport qml quick speech \ svg widgets xml \ buildtools_build qmake_build .include Index: head/graphics/okular/files/patch-shell_shell.cpp =================================================================== --- head/graphics/okular/files/patch-shell_shell.cpp (nonexistent) +++ head/graphics/okular/files/patch-shell_shell.cpp (revision 469738) @@ -0,0 +1,29 @@ +--- shell/shell.cpp ++++ shell/shell.cpp +@@ -163,7 +163,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(part)->openNewFilesInTabs() ++ if ( !qobject_cast(part)->openNewFilesInTabs() + && !part->url().isEmpty() + && !ShellUtils::unique(serializedOptions)) + { +@@ -181,7 +181,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; +@@ -208,7 +208,7 @@ void Shell::openUrl( const KUrl & url, const QString &serializedOptions ) + } + else + { +- if( dynamic_cast(activePart)->openNewFilesInTabs() ) ++ if( qobject_cast(activePart)->openNewFilesInTabs() ) + { + openNewTab( url, serializedOptions ); + } Property changes on: head/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