[qet] [2745] Bug fix: better fix for: After project Was Closed refresh updateActions if new project is open |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2745
Author: scorpio810
Date: 2014-01-18 13:21:27 +0100 (Sat, 18 Jan 2014)
Log Message:
-----------
Bug fix: better fix for: 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-16 09:44:11 UTC (rev 2744)
+++ trunk/sources/qetdiagrameditor.cpp 2014-01-18 12:21:27 UTC (rev 2745)
@@ -1302,11 +1302,6 @@
// 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 *)));
connect(project_view, SIGNAL(diagramAdded(DiagramView *)), this, SLOT(slot_updateActions()));
@@ -1336,6 +1331,7 @@
// affiche la fenetre
if (maximise) project_view -> showMaximized();
else project_view -> show();
+ slot_updateActions();
}
/**