Skip to content

Commit e491600

Browse files
committed
Hacked together solution, closes #1390
1 parent 763c2ba commit e491600

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/Core/Application/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ TARGET_LINK_LIBRARIES(Core_Application
5151
Core_Logging
5252
Core_IEPlugin
5353
Core_Application_Session
54-
Core_Services
55-
Core_ICom
54+
Core_Application_Preferences
5655
${SCI_BOOST_LIBRARY}
5756
)
5857

src/Core/Application/Preferences/Preferences.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ Preferences::Preferences() :
5050
highlightPorts("highlightPorts", false),
5151
autoNotes("autoNotes", false),
5252
modulesAreDockable("modulesAreDockable", true),
53-
networkBackgroundColor("backgroundColor", "#808080")
53+
networkBackgroundColor("backgroundColor", "#808080"),
54+
postModuleAddScript_temporarySolution("postModuleAddScript", "")
5455
{
5556
}
5657

src/Core/Application/Preferences/Preferences.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ namespace SCIRun
8585
BooleanVariable autoNotes;
8686
TrackedVariable<BooleanVariable> modulesAreDockable;
8787
StringVariable networkBackgroundColor;
88+
StringVariable postModuleAddScript_temporarySolution;
8889

8990
std::string dataDirectoryPlaceholder() const;
9091

src/Interface/Application/DialogErrorControl.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ DialogErrorControl::DialogErrorControl(QWidget*parent) : counter_(0)
3737
}
3838
bool DialogErrorControl::showDialog()
3939
{
40-
if (SCIRun::Core::Preferences::Instance().showModuleErrorDialogs && counter_ <= MAX_DIALOGS_SHOWN)
41-
return true;
42-
else
43-
return false;
40+
return Core::Preferences::Instance().showModuleErrorDialogs && counter_ <= MAX_DIALOGS_SHOWN;
4441
}
4542
void DialogErrorControl::resetCounter()
4643
{

src/Interface/Application/TriggeredEventsWindow.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <QtGui>
3030
#include <Interface/Application/TriggeredEventsWindow.h>
3131
#include <Interface/Application/NetworkEditor.h>
32+
#include <Core/Application/Preferences/Preferences.h>
3233

3334
using namespace SCIRun::Gui;
3435
//using namespace SCIRun::Dataflow::Networks;
@@ -64,4 +65,5 @@ void TriggeredEventsWindow::updateScriptEditor()
6465
void TriggeredEventsWindow::updateScripts()
6566
{
6667
scripts_[eventListWidget_->currentItem()->text()] = scriptPlainTextEdit_->toPlainText();
68+
Core::Preferences::Instance().postModuleAddScript_temporarySolution.setValue(scriptPlainTextEdit_->toPlainText().toStdString());
6769
}

0 commit comments

Comments
 (0)