Skip to content

Commit d7c7de2

Browse files
committed
Closes #777 and closes #687
1 parent 6ea86b7 commit d7c7de2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Interface/Application/ModuleWidget.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -949,10 +949,7 @@ void ModuleWidget::trackConnections()
949949
void ModuleWidget::execute()
950950
{
951951
{
952-
//qDebug() << "executing()";
953952
errored_ = false;
954-
//previousModuleState_ = (int)ModuleInterface::Completed;
955-
//std::cout << "execute() prev = " << previousModuleState_ << std::endl;
956953
//colorLocked_ = true; //TODO
957954
timer_.restart();
958955
theModule_->do_execute();
@@ -993,8 +990,6 @@ void fillColorStateLookup(const QString& background)
993990
//TODO: slot should set previousModuleState_
994991
void ModuleWidget::updateBackgroundColorForModuleState(int moduleState)
995992
{
996-
//qDebug() << "updateColor to " << moduleState;
997-
//std::cout << "update prev = " << previousModuleState_ << std::endl;
998993
switch (moduleState)
999994
{
1000995
case (int)ModuleInterface::Waiting:
@@ -1010,7 +1005,6 @@ void ModuleWidget::updateBackgroundColorForModuleState(int moduleState)
10101005
}
10111006
break;
10121007
case (int)ModuleInterface::Completed:
1013-
//if (isUnsetOrSelected(previousModuleState_) || previousModuleState_ == (int)ModuleInterface::Executing)
10141008
{
10151009
if (!errored_)
10161010
Q_EMIT backgroundColorUpdated(defaultBackgroundColor_);
@@ -1021,16 +1015,13 @@ void ModuleWidget::updateBackgroundColorForModuleState(int moduleState)
10211015

10221016
void ModuleWidget::updateBackgroundColor(const QString& color)
10231017
{
1024-
//std::cout << "color set to: " << color.toStdString() << std::endl;
10251018
if (!colorLocked_)
10261019
{
10271020
QString rounded;
10281021
if (SCIRunMainWindow::Instance()->newInterface())
10291022
rounded = "color: white; border-radius: 7px;";
10301023
setStyleSheet(rounded + " background-color: " + color);
1031-
//qDebug() << "looking up color: " << color << "\n";
10321024
previousModuleState_ = colorStateLookup.left.at(color);
1033-
//qDebug() << "state set to: " << previousModuleState_;
10341025
}
10351026
}
10361027

0 commit comments

Comments
 (0)