MainWindow: clear cacheLocalizationsCount when unchecking the option

This commit is contained in:
matlabbe
2018-10-25 19:08:00 -04:00
parent 12a7349165
commit a43eccdac8

View File

@@ -4027,6 +4027,10 @@ void MainWindow::applyPrefSettings(PreferencesDialog::PANEL_FLAGS flags)
{
UDEBUG("General settings changed...");
setupMainLayout(_preferencesDialog->isVerticalLayoutUsed());
if(!_preferencesDialog->isLocalizationsCountGraphView())
{
_cachedLocalizationsCount.clear();
}
if(!_preferencesDialog->isPosteriorGraphView() && _ui->graphicsView_graphView->isVisible())
{
_ui->graphicsView_graphView->clearPosterior();