mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
Merge branch 'master' of ssh://github.com/fluxer/kde-extraapps
This commit is contained in:
commit
dee192e49a
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,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;
|
||||
|
@ -211,7 +211,7 @@ void Shell::openUrl( const KUrl & url, const QString &serializedOptions )
|
|||
}
|
||||
else
|
||||
{
|
||||
if( dynamic_cast<Okular::ViewerInterface *>(activePart)->openNewFilesInTabs() )
|
||||
if( qobject_cast<Okular::ViewerInterface *>(activePart)->openNewFilesInTabs() )
|
||||
{
|
||||
openNewTab( url, serializedOptions );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue