[qet] [2739] After project Was Closed refresh updateActions if new project is open

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


Revision: 2739
Author:   scorpio810
Date:     2014-01-13 02:40:54 +0100 (Mon, 13 Jan 2014)
Log Message:
-----------
After project Was Closed refresh updateActions if new project is open

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

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2014-01-12 17:02:30 UTC (rev 2738)
+++ trunk/sources/qetdiagrameditor.cpp	2014-01-13 01:40:54 UTC (rev 2739)
@@ -1301,6 +1301,11 @@
 	
 	// gere la fermeture du projet
 	connect(project_view, SIGNAL(projectClosed(ProjectView*)), this, SLOT(projectWasClosed(ProjectView *)));
+
+	// gere l'ouverture d'un autre projet apres fermeture
+	connect(new_file, SIGNAL(triggered()), this, SLOT(slot_updateActions()));
+	connect(open_file, SIGNAL(triggered()), this, SLOT(slot_updateActions()));
+	connect(QETApp::projectsRecentFiles(), SIGNAL(fileOpeningRequested(const QString &)), this, SLOT(slot_updateActions()));
 	
 	// gere l'ajout et le retrait de schema du projet
 	connect(project_view, SIGNAL(diagramAdded(DiagramView *)),   this, SLOT(diagramWasAdded(DiagramView *)));


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