[qet] [3057] better fix recentfiles |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3057
Author: scorpio810
Date: 2014-05-05 19:32:10 +0200 (Mon, 05 May 2014)
Log Message:
-----------
better fix recentfiles
Modified Paths:
--------------
trunk/sources/qetdiagrameditor.cpp
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2014-05-04 22:14:57 UTC (rev 3056)
+++ trunk/sources/qetdiagrameditor.cpp 2014-05-05 17:32:10 UTC (rev 3057)
@@ -457,7 +457,8 @@
// menu Fichier
menu_fichier -> addAction(new_file);
menu_fichier -> addAction(open_file);
- menu_fichier -> addMenu(QET::Icons::DocumentOpenRecent, tr("&R\351cemment ouvert(s)")) -> addMenu(QETApp:: projectsRecentFiles() -> menu());
+ QMenu *recentfile = menu_fichier -> addMenu(QET::Icons::DocumentOpenRecent, tr("&R\351cemment ouvert(s)"));
+ recentfile->addActions(QETApp::projectsRecentFiles()->menu()->actions());
connect(QETApp::projectsRecentFiles(), SIGNAL(fileOpeningRequested(const QString &)), this, SLOT(openRecentFile(const QString &)));
menu_fichier -> addAction(save_file);
menu_fichier -> addAction(save_file_as);