When adding a new view in Activity Monitor, make sure the new view use the same refresh interval as the already existing views, to avoid having different refresh intervals active in the monitor.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30688 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre
2009-05-09 23:46:44 +00:00
parent db75c41bf8
commit e3bf105abf
+4 -1
View File
@@ -332,7 +332,10 @@ ActivityWindow::_SaveSettings()
void
ActivityWindow::_AddDefaultView()
{
ActivityView* view = new ActivityView("ActivityMonitor", NULL);
BMessage settings;
settings.AddInt64("refresh interval", RefreshInterval());
ActivityView* view = new ActivityView("ActivityMonitor", &settings);
switch (ActivityViewCount()) {
case 0: