regenerate stress cache after config change

fixes #32
This commit is contained in:
Sean Rhea
2010-02-02 12:16:16 -08:00
parent 76a8d94384
commit 28cbe359d4
2 changed files with 9 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ PerformanceManagerWindow::PerformanceManagerWindow(MainWindow *mainWindow) :
SLOT(PMpickerMoved(const QPoint &)));
connect(metricCombo, SIGNAL(currentIndexChanged(int)),
this, SLOT(replot()));
connect(mainWindow, SIGNAL(configChanged()), this, SLOT(configChanged()));
}
PerformanceManagerWindow::~PerformanceManagerWindow()
@@ -101,6 +102,13 @@ PerformanceManagerWindow::~PerformanceManagerWindow()
delete sc;
}
void PerformanceManagerWindow::configChanged()
{
mainWindow->home.remove("stress.cache");
days = 0; // force replot
replot();
}
void PerformanceManagerWindow::setActive(bool value)
{
if (value)

View File

@@ -52,6 +52,7 @@ class PerformanceManagerWindow : public QWidget
void PMpickerMoved(const QPoint &pos);
void setPMSizeFromSlider();
void replot();
void configChanged();
protected: