Fix #1746: Apply patch by hamish which sets the virtual memory size to the

default minimum instead of zero when the user turns on virtual memory. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40056 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood
2011-01-01 21:15:07 +00:00
parent bd2a7a1a44
commit a1712b28a6
@@ -365,6 +365,12 @@ SettingsWindow::MessageReceived(BMessage* message)
}
fSettings.SetSwapEnabled(value != 0);
if (value == 1 && fSettings.SwapSize() == 0)
{
off_t min, max;
_GetSwapFileLimits(min, max);
fSettings.SetSwapSize(min);
}
_Update();
break;
}