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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user