Skip to content

Commit

Permalink
option no-warnings now also applies to sumo-gui message window refs #36
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/behr_mi/git/sumo_synched/trunk@16163 afbd958f-9f77-42d5-a016-97a22340ccf4
  • Loading branch information
namdre committed Apr 10, 2014
1 parent 567c644 commit e9769d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sumo/src/gui/GUILoadThread.cpp
Expand Up @@ -108,7 +108,9 @@ GUILoadThread::run() {
// register message callbacks
MsgHandler::getMessageInstance()->addRetriever(myMessageRetriever);
MsgHandler::getErrorInstance()->addRetriever(myErrorRetriever);
MsgHandler::getWarningInstance()->addRetriever(myWarningRetriever);
if (!OptionsCont::getOptions().getBool("no-warnings")) {
MsgHandler::getWarningInstance()->addRetriever(myWarningRetriever);
}

// try to load the given configuration
if (!initOptions()) {
Expand Down
4 changes: 3 additions & 1 deletion sumo/src/gui/GUIRunThread.cpp
Expand Up @@ -96,7 +96,9 @@ GUIRunThread::init(GUINet* net, SUMOTime start, SUMOTime end) {
// register message callbacks
MsgHandler::getErrorInstance()->addRetriever(myErrorRetriever);
MsgHandler::getMessageInstance()->addRetriever(myMessageRetriever);
MsgHandler::getWarningInstance()->addRetriever(myWarningRetriever);
if (!OptionsCont::getOptions().getBool("no-warnings")) {
MsgHandler::getWarningInstance()->addRetriever(myWarningRetriever);
}
// preload the routes especially for TraCI
mySimulationLock.lock();
try {
Expand Down

0 comments on commit e9769d3

Please sign in to comment.