[qet] [3442] Fix menu recent file in element editor

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3442
Author:   scorpio810
Date:     2014-11-03 02:22:10 +0100 (Mon, 03 Nov 2014)
Log Message:
-----------
Fix menu recent file in element editor

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2014-11-02 20:45:16 UTC (rev 3441)
+++ trunk/sources/editor/qetelementeditor.cpp	2014-11-03 01:22:10 UTC (rev 3442)
@@ -367,7 +367,8 @@
 	file_menu    -> addAction(new_element);
 	file_menu    -> addAction(open);
 	file_menu    -> addAction(open_file);
-	file_menu    -> addMenu(QETApp::elementsRecentFiles() -> menu());
+	QMenu *recentfile = file_menu -> addMenu(QET::Icons::DocumentOpenRecent, tr("&R\351cemment ouverts"));
+	recentfile->addActions(QETApp::elementsRecentFiles()->menu()->actions());
 	connect(QETApp::elementsRecentFiles(), SIGNAL(fileOpeningRequested(const QString &)), this, SLOT(openRecentFile(const QString &)));
 	file_menu    -> addAction(save);
 	file_menu    -> addAction(save_as);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/