FreeBSD Bugzilla – Attachment 193330 Details for
Bug 228199
[patch] graphics/okular: fix crash when opening files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
okular.patch (text/plain), 1.98 KB, created by
Tijl Coosemans
on 2018-05-12 16:00:39 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Tijl Coosemans
Created:
2018-05-12 16:00:39 UTC
Size:
1.98 KB
patch
obsolete
>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<Okular::ViewerInterface*>(part)->openNewFilesInTabs() >++ if ( !qobject_cast<Okular::ViewerInterface*>(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<Okular::ViewerInterface*>(part)->openNewFilesInTabs(); >++ const bool allowTabs = qobject_cast<Okular::ViewerInterface*>(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<Okular::ViewerInterface *>(activePart)->openNewFilesInTabs() ) >++ if( qobject_cast<Okular::ViewerInterface *>(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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228199
: 193330