[qet] [3053] recent files refresh

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


Revision: 3053
Author:   scorpio810
Date:     2014-05-04 17:49:57 +0200 (Sun, 04 May 2014)
Log Message:
-----------
recent files refresh

Modified Paths:
--------------
    trunk/sources/qetdiagrameditor.cpp
    trunk/sources/recentfiles.cpp

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2014-05-04 15:27:22 UTC (rev 3052)
+++ trunk/sources/qetdiagrameditor.cpp	2014-05-04 15:49:57 UTC (rev 3053)
@@ -457,7 +457,7 @@
 	// menu Fichier
 	menu_fichier -> addAction(new_file);
 	menu_fichier -> addAction(open_file);
-	menu_fichier -> addMenu(tr("&R\351cemment ouvert(s)")),(QETApp::projectsRecentFiles() -> menu());
+	menu_fichier -> addMenu(tr("&R\351cemment ouvert(s)")) -> addMenu(QETApp::projectsRecentFiles() -> menu());
 	connect(QETApp::projectsRecentFiles(), SIGNAL(fileOpeningRequested(const QString &)), this, SLOT(openRecentFile(const QString &)));
 	menu_fichier -> addAction(save_file);
 	menu_fichier -> addAction(save_file_as);

Modified: trunk/sources/recentfiles.cpp
===================================================================
--- trunk/sources/recentfiles.cpp	2014-05-04 15:27:22 UTC (rev 3052)
+++ trunk/sources/recentfiles.cpp	2014-05-04 15:49:57 UTC (rev 3053)
@@ -159,7 +159,7 @@
 void RecentFiles::buildMenu() {
 	// reinitialise le menu
 	if (!menu_) {
-		menu_ = new QMenu(tr("&R\351cemment ouvert(s)"));
+		menu_ = new QMenu;
 		menu_ -> setIcon(QET::Icons::DocumentOpenRecent);
 	} else {
 		menu_ -> clear();


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