UTF-8 made default encoding for new feeds.
This commit is contained in:
parent
724db8cae4
commit
c8580935a9
@ -23,6 +23,7 @@
|
||||
#define APP_VERSION "@APP_VERSION@"
|
||||
#define APP_USERAGENT QString("@APP_NAME@/@APP_VERSION@ (@APP_URL@) on @CMAKE_SYSTEM@; Webkit/") + qWebKitVersion()
|
||||
|
||||
#define DEFAULT_FEED_ENCODING "UTF-8"
|
||||
#define URL_REGEXP "^(http|https|feed|ftp):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&:/~\\+#]*[\\w\\-\\@?^=%&/~\\+#])?$"
|
||||
#define USER_AGENT_HTTP_HEADER "User-Agent"
|
||||
#define TEXT_TITLE_LIMIT 30
|
||||
|
@ -50,6 +50,12 @@ int FormStandardFeedDetails::exec(FeedsModelStandardFeed *input_feed) {
|
||||
// Make sure that "default" icon is used as the default option for new
|
||||
// feed.
|
||||
m_actionUseDefaultIcon->trigger();
|
||||
|
||||
int default_encoding_index = m_ui->m_cmbEncoding->findText(DEFAULT_FEED_ENCODING);
|
||||
|
||||
if (default_encoding_index >= 0) {
|
||||
m_ui->m_cmbEncoding->setCurrentIndex(default_encoding_index);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// User is editing existing category.
|
||||
|
Loading…
x
Reference in New Issue
Block a user