|
|
@ -122,9 +122,8 @@ Application::Application(const QString &id, int &argc, char **argv) |
|
|
|
SettingsStorage::initInstance(); |
|
|
|
SettingsStorage::initInstance(); |
|
|
|
Preferences::initInstance(); |
|
|
|
Preferences::initInstance(); |
|
|
|
|
|
|
|
|
|
|
|
if (m_commandLineArgs.webUiPort > 0) { // it will be -1 when user did not set any value
|
|
|
|
if (m_commandLineArgs.webUiPort > 0) // it will be -1 when user did not set any value
|
|
|
|
Preferences::instance()->setWebUiPort(m_commandLineArgs.webUiPort); |
|
|
|
Preferences::instance()->setWebUiPort(m_commandLineArgs.webUiPort); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setApplicationName("qBittorrent"); |
|
|
|
setApplicationName("qBittorrent"); |
|
|
|
initializeTranslation(); |
|
|
|
initializeTranslation(); |
|
|
|