Skip to content

Commit

Permalink
Fix issue with views reconfigure
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkanovikov committed Dec 12, 2022
1 parent 88863a5 commit a2d5c09
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,11 @@ void ComicBookTextManager::resetModels()

void ComicBookTextManager::reconfigure(const QStringList& _changedSettingsKeys)
{
d->view->reconfigure(_changedSettingsKeys);
for (const auto& view : std::as_const(d->allViews)) {
if (!view.view.isNull()) {
view.view->reconfigure(_changedSettingsKeys);
}
}
}

void ComicBookTextManager::bind(IDocumentManager* _manager)
Expand Down
2 changes: 1 addition & 1 deletion src/core/management_layer/plugins/screenplay_cards
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,11 @@ void ScreenplayTextManager::resetModels()

void ScreenplayTextManager::reconfigure(const QStringList& _changedSettingsKeys)
{
d->view->reconfigure(_changedSettingsKeys);
for (const auto& view : std::as_const(d->allViews)) {
if (!view.view.isNull()) {
view.view->reconfigure(_changedSettingsKeys);
}
}
}

void ScreenplayTextManager::bind(IDocumentManager* _manager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ void ScreenplayTreatmentManager::resetModels()

void ScreenplayTreatmentManager::reconfigure(const QStringList& _changedSettingsKeys)
{
d->view->reconfigure(_changedSettingsKeys);
for (const auto& view : std::as_const(d->allViews)) {
if (!view.view.isNull()) {
view.view->reconfigure(_changedSettingsKeys);
}
}
}

void ScreenplayTreatmentManager::bind(IDocumentManager* _manager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,11 @@ void SimpleTextManager::resetModels()

void SimpleTextManager::reconfigure(const QStringList& _changedSettingsKeys)
{
d->view->reconfigure(_changedSettingsKeys);
for (const auto& view : std::as_const(d->allViews)) {
if (!view.view.isNull()) {
view.view->reconfigure(_changedSettingsKeys);
}
}
}

void SimpleTextManager::bind(IDocumentManager* _manager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,11 @@ void StageplayTextManager::resetModels()

void StageplayTextManager::reconfigure(const QStringList& _changedSettingsKeys)
{
d->view->reconfigure(_changedSettingsKeys);
for (const auto& view : std::as_const(d->allViews)) {
if (!view.view.isNull()) {
view.view->reconfigure(_changedSettingsKeys);
}
}
}

void StageplayTextManager::bind(IDocumentManager* _manager)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ void TitlePageManager::resetModels()

void TitlePageManager::reconfigure(const QStringList& _changedSettingsKeys)
{
d->view->reconfigure(_changedSettingsKeys);
for (const auto& view : std::as_const(d->allViews)) {
if (!view.view.isNull()) {
view.view->reconfigure(_changedSettingsKeys);
}
}
}

void TitlePageManager::saveSettings()
Expand Down

0 comments on commit a2d5c09

Please sign in to comment.