2. In the filter field, type in browser.showQuitWarning. This should filter out all other options
3. Double click on the option that is left in the list. The value should switch from "false" to "true".
4. Close about:config tab and it should work
Taken from: http://www.virtualhelp.me/applications/51-office/288-firefox-4-doesnt-save-tabs