mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Refactor
Move default value to preference class Rename variable Reorder headers Remove extra parentheses
This commit is contained in:
parent
7adb1d7f82
commit
e37a696e7d
2 changed files with 15 additions and 24 deletions
|
@ -31,8 +31,9 @@
|
|||
*/
|
||||
|
||||
#include <QCryptographicHash>
|
||||
#include <QPair>
|
||||
#include <QDir>
|
||||
#include <QLocale>
|
||||
#include <QPair>
|
||||
#include <QSettings>
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
|
@ -92,7 +93,7 @@ void Preferences::setValue(const QString &key, const QVariant &value)
|
|||
// General options
|
||||
QString Preferences::getLocale() const
|
||||
{
|
||||
return value("Preferences/General/Locale").toString();
|
||||
return value("Preferences/General/Locale", QLocale::system().name()).toString();
|
||||
}
|
||||
|
||||
void Preferences::setLocale(const QString &locale)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue