Skip to content

Commit

Permalink
Update all overlay and map settings editors after update. If there wa…
Browse files Browse the repository at this point in the history
…s more than one Overlay and Map Settings Dialog open and set to the same file/map, changing settings in one of the dialogs did not update the other dialog. This has been fixed.
  • Loading branch information
John Harwell authored and coalsont committed Jun 4, 2018
1 parent 3a7ea65 commit 50c9a53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GuiQt/OverlaySettingsEditorDialog.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ OverlaySettingsEditorDialog::OverlaySettingsEditorDialog(QWidget* parent)
disableAutoDefaultForAllPushButtons();

EventManager::get()->addProcessedEventListener(this, EventTypeEnum::EVENT_DATA_FILE_DELETE);
EventManager::get()->addEventListener(this, EventTypeEnum::EVENT_BROWSER_WINDOW_GRAPHICS_HAVE_BEEN_REDRAWN);
}

/**
Expand All @@ -170,7 +171,8 @@ OverlaySettingsEditorDialog::~OverlaySettingsEditorDialog()
void
OverlaySettingsEditorDialog::receiveEvent(Event* event)
{
if (event->getEventType() == EventTypeEnum::EVENT_DATA_FILE_DELETE) {
if ((event->getEventType() == EventTypeEnum::EVENT_DATA_FILE_DELETE)
|| (event->getEventType() == EventTypeEnum::EVENT_BROWSER_WINDOW_GRAPHICS_HAVE_BEEN_REDRAWN)) {
updateDialog();
}
}
Expand Down

0 comments on commit 50c9a53

Please sign in to comment.