Eugene Shalygin
0f746ffd5a
Add support for different configurations. Partially closes #465
...
It may be useful to have different configurations either for portable
versions or for debugging purposes. To implement this we add two
options, avaliable via command line switches
1. An option to change configuration name ("--configuration"). The name
supplied via this option is appended to
QCoreApplication::applicationName() to form "qBittorrent_<conf_name>"
name for the configuration files.
2. An option to provide a path do directory where all the settings are
stored (kind of profile directory). There is a shortcut "--portable"
which means "use directory 'profile' near the executable location".
In order to implement that we have to perform initialisation of the
profile directories before the SettingStorage and Preferences singletones
are initialised. Thus, options parsing shall be performed without defaults
read from preferences.
8 years ago
Chocobo1
d1ee54f6ea
Refactor: move methods under the same #if section.
8 years ago
Chocobo1
7f346b49a7
Refactor: move the validation of certificates & key functions under Server class
...
Rename method
Add log messages
8 years ago
opengg
db3158c410
[WebUI] bugfix: `RequestParser::splitMultipartData` drop extra trailing newline.
8 years ago
Eugene Shalygin
3091e03a95
Fix CMake build
8 years ago
Eugene Shalygin
3752d112fb
Fix TorrentFileGuard::setAutoRemove() recursion problem. Closes #6488 .
...
The problem was created during Qt 4 drop, when FileGuard was promoted
from a member to a base class. The function was blindly changed.
8 years ago
sledgehammer999
729fbb2e50
Change named of getter function.
8 years ago
sledgehammer999
be60b3e046
Change the user-agent format in the session.cpp too.
8 years ago
sledgehammer999
431658bee6
Fix race condition where there was a chance to allow all ips between reparsings of the ip filter.
8 years ago
Vladimir Golovnev (Glassez)
79e8f69fb6
Remove exception-suppress macros
...
Remove SAFE_* macros from TorrentHandle class.
These macros using seems to be unneeded.
8 years ago
Chocobo1
fa2128cbae
Replace Utils::String::fromStdString() by QString::fromStdString()
8 years ago
Chocobo1
87384ca2a2
Replace Utils::String::toHtmlEscaped() by QString::.toHtmlEscaped()
8 years ago
Chocobo1
ffdcfe9686
Replace Utils::String::toStdString() by QString::toStdString()
8 years ago
Chocobo1
7539bee5c5
Remove remaining QBT_USES_QT5 defines.
...
Fixup of e64bb1de8c
.
8 years ago
dzmat
59de1af31b
implemented UI for managment of locally banned IP list ( Closes #1837 )
8 years ago
Chocobo1
2091dfaa69
Follow http user-agent format
...
Add version variable without the starting "v"
8 years ago
Chocobo1
cb1646be32
Prepend QBT_ for preprocessor variables
8 years ago
Eugene Shalygin
008d7dbedc
Raise minimal Qt version to 5.5.1
8 years ago
Eugene Shalygin
e64bb1de8c
Drop Qt 4 support
8 years ago
Chocobo1
cae2f3059c
Workaround thread_local not supported on OSX
...
Drop back to xcode7.3 on TravisCI
8 years ago
Chocobo1
3b5e7eb0ea
Fix compile error: ‘escape’ is not a member of ‘Qt’
8 years ago
Chocobo1
ea9d65f377
Fix incomplete type compile error with Qt4
8 years ago
Chocobo1
6ca3e4f094
Add Utils::String::toHtmlEscaped
8 years ago
Chocobo1
7756dd80f3
[WebUI]: add X-XSS-Protection, X-Content-Type-Options, CSP header
8 years ago
ngosang
f5ad04766f
[WebUI] Avoid clickjacking attacks
8 years ago
Chocobo1
f9c39e3dac
[WebUI]: exclude insecure ciphers
8 years ago
Chocobo1
84bc011df5
Code formatting
...
Remove extra private keyword
8 years ago
sledgehammer999
b5f81a34cb
Use new create_torrent constructor were available.
8 years ago
Eugene Shalygin
be8eab4e54
Disable proxy in WebUI HTTP server. Closes #6349 .
...
Due to a bug in Qt 5.8 (QTBUG-58706) QTcpServer tries to use HTTP proxy
when it is set as default app proxy (for instance via "http_proxy"
environment variable) and this breaks the server. So we disable any proxy
in it.
8 years ago
Chocobo1
511796f74e
Replace rand() by a true uniform distribution generator
8 years ago
Chocobo1
c7d10dc091
Turn off port forwarding of WebUI by default for GUI users
8 years ago
Tim Delaney
a844ccb06a
Cache rule regular expressions for performance
...
--HG--
branch : magao-dev
8 years ago
Tim Delaney
f9abd254f4
Use Perl-compatible regexes for RSS rules. Closes #6367 .
...
--HG--
branch : magao-dev
8 years ago
falco
ee239ddd1e
fix queue overload for add torrent at session start
8 years ago
Chocobo1
4ad541d066
Fix coverity issues
...
torrentcontentmodel: Use a variable to store filesCount
optionsdlg: add fallthrough comment to suppress warning
speedPlotview: initialize member
misc: fix wrong type used, add spaces
8 years ago
Chocobo1
cab10aa7b4
Use QString::toStdString()
...
Qt5 utilized the desired toUtf8() instead of toAscii().
8 years ago
sledgehammer999
5046c36458
Immediately update torrent_status after manipulating super seeding mode. Partially fixes #6072 .
8 years ago
Tim Delaney
c0339d4f6a
Fix regex RSS matching. Closes #6337 .
...
--HG--
branch : magao-dev
8 years ago
dzmat
b167b4174e
reduce methods accessibility from public to private
8 years ago
Tim Delaney
5d185f1fcd
Fix compilation error on Qt<5.4. Closes #6170 .
...
--HG--
branch : magao-dev
8 years ago
Eugene Shalygin
13d9dea8ac
cmake: make LibtorrentRasterbar::LibTorrent public dependency of qbt_base
...
If libtorrent include directory not in the compiler search path, we have
to pass it to all qbt targets, because session.h includes
libtorrent/version.hpp
8 years ago
Falco
84759d4f20
fix index overflow for torrents with invalid meta data or empty progress
8 years ago
thalieht
f8213f5d56
friendlyUnit: Properly replace spaces with non-breaking spaces
8 years ago
thalieht
311b060c70
Increased number of digits after the decimal point for Gibibytes and above
8 years ago
sledgehammer999
f4fa000ba3
Polish previous commit.
8 years ago
Chocobo1
0517a3eb63
Fix rss icon too large in rss settings dialog
...
Give a name to the rss icon (in .ui file)
Add helper function: Utils::Misc::largeIconSize()
Group functions under the same #ifdef
8 years ago
Chocobo1
a2bb947dcc
After files relocate, don't remove the old folder even if it is empty.
8 years ago
Chocobo1
fa45ba102c
Refactor
8 years ago
Chocobo1
e37a696e7d
Refactor
...
Move default value to preference class
Rename variable
Reorder headers
Remove extra parentheses
8 years ago
Chocobo1
72a6f7ae24
Use the numbers from tracker scrape response. Closes #5048 , #6117 .
...
Add comments
Thanks to Ian Kent for helping investigate
8 years ago