Arora/arora — pull request #11 by josiow (2012-12-31 15:22:39+00:00)
Title: Correct behavior of the 'User Agent' menu.

Because check state of a menu item (QAction) cannot be controlled in a slot connected to the 'triggered' signal, if the user cancels the dialog for setting a custom user agent string, the 'Other...' item stays checked, which isn't optimal.

This patch corrects that behavior by remembering the previous checked item. This approach was necessary because QAction::data of the 'Default' item are always empty but WebPage::s_userAgent may be either empty or contain the value of QWebPage::userAgentForUrl.