Skip to content

Commit 4fef245

Browse files
committed
Closes #418
1 parent adbde48 commit 4fef245

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Interface/Application/ModuleWidget.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ void ModuleWidget::makeOptionsDialog()
655655

656656
dialog_ = dialogFactory_->makeDialog(moduleId_, theModule_->get_state());
657657
dialog_->pull();
658+
addWidgetToExecutionDisableList(dialog_->getExecuteAction());
658659
connect(dialog_, SIGNAL(executeActionTriggered()), this, SLOT(executeButtonPushed()));
659660
connect(this, SIGNAL(moduleExecuted()), dialog_, SLOT(moduleExecuted()));
660661
dockable_ = new QDockWidget(QString::fromStdString(moduleId_), 0);

src/Interface/Modules/Base/ModuleDialogGeneric.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
#include <Dataflow/Network/ModuleStateInterface.h>
3030
#include <Interface/Modules/Base/ModuleDialogGeneric.h>
31-
//#include <Interface/Application/MainWindowCollaborators.h>
3231
#include <Core/Logging/Log.h>
3332
#include <boost/foreach.hpp>
3433

@@ -38,7 +37,8 @@ using namespace SCIRun::Core::Algorithms;
3837

3938
ModuleDialogGeneric::ModuleDialogGeneric(SCIRun::Dataflow::Networks::ModuleStateHandle state, QWidget* parent) : QDialog(parent),
4039
state_(state),
41-
pulling_(false)
40+
pulling_(false),
41+
executeAction_(0)
4242
{
4343
setModal(false);
4444

@@ -72,8 +72,6 @@ void ModuleDialogGeneric::createExecuteAction()
7272
//executeAction_->setShortcut(QKeySequence("Ctrl+1"));
7373
executeAction_->setIcon(QApplication::style()->standardIcon(QStyle::SP_MediaPlay));
7474
connect(executeAction_, SIGNAL(triggered()), this, SIGNAL(executeActionTriggered()));
75-
//TODO
76-
//addWidgetToExecutionDisableList(executeAction_);
7775
}
7876

7977
void ModuleDialogGeneric::contextMenuEvent(QContextMenuEvent* e)

src/Interface/Modules/Base/ModuleDialogGeneric.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ namespace Gui {
4949
public:
5050
virtual ~ModuleDialogGeneric();
5151
bool isPulling() const { return pulling_; } //yuck
52+
QAction* getExecuteAction() { return executeAction_; }
5253

5354
//TODO: input state hookup?
5455
//yeah: eventually replace int with generic dialog state object, but needs to be two-way (set/get)

0 commit comments

Comments
 (0)