|
|
|
|
@ -64,6 +64,7 @@ Shell::Shell( const QString &serializedOptions ) |
|
|
|
|
#ifdef KActivities_FOUND |
|
|
|
|
, m_activityResource(0) |
|
|
|
|
#endif |
|
|
|
|
, m_isValid(true) |
|
|
|
|
{ |
|
|
|
|
setObjectName( QLatin1String( "okular::Shell" ) ); |
|
|
|
|
setContextMenuPolicy( Qt::NoContextMenu ); |
|
|
|
|
@ -79,6 +80,7 @@ Shell::Shell( const QString &serializedOptions ) |
|
|
|
|
{ |
|
|
|
|
// if we couldn't find our Part, we exit since the Shell by
|
|
|
|
|
// itself can't do anything useful
|
|
|
|
|
m_isValid = false; |
|
|
|
|
KMessageBox::error(this, i18n("Unable to find the Okular component.")); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
@ -130,10 +132,16 @@ Shell::Shell( const QString &serializedOptions ) |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
m_isValid = false; |
|
|
|
|
KMessageBox::error(this, i18n("Unable to find the Okular component.")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool Shell::isValid() const |
|
|
|
|
{ |
|
|
|
|
return m_isValid; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Shell::showOpenRecentMenu() |
|
|
|
|
{ |
|
|
|
|
m_recent->menu()->popup(QCursor::pos()); |
|
|
|
|
|