Commit 02b04e7e authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Make the openRecent just be open recent

Stop being too smart for own our good, try to merge open and openRecent actions in just one action
confuses the hell out of people, so let's KISS and just make open recent be open recent
BUGS: 302358
BUGS: 251335
FIXED-IN: 4.10.0
parent 8dbd83ab
......@@ -117,6 +117,11 @@ void Shell::delayedOpen()
openUrl( m_openUrl );
void Shell::showOpenRecentMenu()
if ( m_part )
......@@ -182,8 +187,7 @@ void Shell::setupActions()
KStandardAction::open(this, SLOT(fileOpen()), actionCollection());
m_recent = KStandardAction::openRecent( this, SLOT(openUrl(KUrl)), actionCollection() );
m_recent->setToolBarMode( KRecentFilesAction::MenuMode );
m_recent->setToolButtonPopupMode( QToolButton::DelayedPopup );
connect( m_recent, SIGNAL(triggered()), this, SLOT(fileOpen()) );
connect( m_recent, SIGNAL(triggered()), this, SLOT(showOpenRecentMenu()) );
m_recent->setToolTip( i18n("Click to open a file\nClick and hold to open a recent file") );
m_recent->setWhatsThis( i18n( "<b>Click</b> to open a file or <b>Click and hold</b> to select a recent file" ) );
m_printAction = KStandardAction::print( m_part, SLOT(slotPrint()), actionCollection() );
......@@ -80,6 +80,7 @@ private slots:
void openUrl( const KUrl & url );
void delayedOpen();
void showOpenRecentMenu();
void restoreDocument(const KConfigGroup &group);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment