[qet] qet/qet: [5387] Add the full path of the current project as an argument when calling the |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5387
Author: scorpio810
Date: 2018-06-07 14:22:09 +0200 (Thu, 07 Jun 2018)
Log Message:
-----------
Add the full path of the current project as an argument when calling the
plug-in "qet_tb_generator" from QET
qet_tb_generator menu entry was enabled only when a project is open
Modified Paths:
--------------
trunk/sources/qetdiagrameditor.cpp
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2018-06-06 02:07:39 UTC (rev 5386)
+++ trunk/sources/qetdiagrameditor.cpp 2018-06-07 12:22:09 UTC (rev 5387)
@@ -1358,6 +1358,7 @@
save_file -> setEnabled(opened_project);
save_file_as -> setEnabled(opened_project);
prj_edit_prop -> setEnabled(opened_project);
+ prj_terminalBloc -> setEnabled(opened_project);
prj_add_diagram -> setEnabled(editable_project);
prj_del_diagram -> setEnabled(editable_project);
prj_clean -> setEnabled(editable_project);
@@ -2224,9 +2225,9 @@
//process->start("qet_tb_generator");
#ifdef Q_OS_MAC
-success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.5/bin/qet_tb_generator");
+success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.5/bin/qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())});
#else
-success = process->startDetached("qet_tb_generator");
+success = process->startDetached("qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())});
#endif
if ( !success ) {
QMessageBox::warning(nullptr,