Chocobo1
aed9e8f1b7
Fix value comparison. Closes #7081 .
...
`category` could be 'undefined'.
Fixup of a7f4ea8b18 .
2017-07-18 02:53:55 +03:00
Thomas Piccirello
317689bd5d
Fix javascript errors and follow best practices
2017-07-18 02:51:42 +03:00
Thomas Piccirello
1ad66ba791
Skip username/password check for active sessions ( closes #6860 )
2017-07-18 02:51:34 +03:00
sledgehammer999
b4fb193d4a
Fix Qt 5.2 build.
2017-07-03 18:17:27 +03:00
sledgehammer999
6b659804c7
Pad shorter python versions. Closes #6877 .
2017-07-03 18:17:18 +03:00
Chocobo1
0831320f17
[WebAPI] Convert all header name constants to lowercase
...
This save us another transition when some day we implements HTTP/2
(which all headers are in lowercase).
2017-06-26 01:33:17 +03:00
Chocobo1
8d2fb06f65
[WebUI] relax CSRF defense. Closes #6882 .
...
Allow HTTP request which has neither Origin nor Referer header included
2017-06-26 01:33:16 +03:00
Chocobo1
bf6f103142
Fix KEEP_ALIVE_DURATION value
...
I intended to specify 7 seconds, which should be 7000 milliseconds
2017-06-26 01:33:15 +03:00
Chocobo1
7c2437e5f2
[WebUI]: Implement CSRF defense
...
Bump API version
2017-06-01 02:28:07 +03:00
sledgehammer999
dc315c080b
Revert "Remove workaround". Required since we also support Qt4 in this branch.
...
This reverts commit 2ba3104337 .
2017-06-01 02:28:06 +03:00
sledgehammer999
971c340b53
Fix format-truncation warning.
2017-06-01 01:19:55 +03:00
Chocobo1
76b9b02177
Fix focusing on the previously opened dialog didn't work
...
Placing modeless dialog A on top of modeless dialog B, then open dialog B again,
the expected behavior is B on top of A.
2017-06-01 01:19:47 +03:00
Eugene Shalygin
6a3e7a12d8
cmake: fix compilation with Qt 4
...
In qmake we define QStringLiteral=QLatin1String, so define it in cmake
builds too.
2017-05-31 19:28:32 +02:00
sledgehammer999
d92ef3fa4d
Fix Qt4 build.
2017-05-31 00:34:21 +03:00
Eugene Shalygin
89d4cb257f
Fix crash in download piece bar
...
When torrent size is smaller than the image width, bytes per pixel was
set to zero and code was crashing. Set it to -1 instead, as we do when
image is empty. This will disable highliting, but our algorithm does not
work in this case anyway.
2017-05-31 00:34:21 +03:00
Chocobo1
47ebb0df58
Add new webUI API. Closes #6457 .
...
Now getting piece information for a specific torrent is possible via:
* Returns an array of states (integers) of pieces in order. Defined as:
"0=not downloaded", "1=downloading", "2=downloaded".
GET /query/getPieceStates/<torrent_hash>
* Returns an array of hashes (strings) of pieces in order:
GET /query/getPieceHashes/<torrent_hash>
2017-05-31 00:34:20 +03:00
Chocobo1
71169abaa6
[WebUI] Make cookie parsing robust
...
Previously cookie name such as "<any string>SID" will be mistakenly
accepted as "SID" session ID, this commit fixes it.
Use QString::isEmpty()
2017-05-31 00:34:19 +03:00
Chocobo1
83dd0ae86e
Refactor out helper function Utils::String::unquote
...
Remove redundant include
2017-05-31 00:34:18 +03:00
Chocobo1
c9500d933b
Fix renaming files is not case sensitive on Windows platform. Closes #5128 .
2017-05-31 00:34:17 +03:00
Naikel Aparicio
b8787460a4
Fix slow filtering in WebUI. Fixup 7aadf644e0.
2017-05-31 00:34:17 +03:00
Naikel Aparicio
d031264d62
Cosmetic fixes for WebUI upload and download windows
2017-05-31 00:34:16 +03:00
KingLucius
63b408c743
remove ExtraTorrent plugin
2017-05-31 00:34:15 +03:00
Chocobo1
6b91510d71
Set icon height in html instead of js
...
Fixup of d302e4fb92
2017-05-31 00:34:14 +03:00
Chocobo1
f1a7e8921a
[WebUI] Fix connection status icon too large. Closes #6804 .
2017-05-31 00:34:13 +03:00
Eugene Shalygin
78c34b948e
Fix build error.
2017-05-31 00:34:12 +03:00
Frédéric Brière
690db070c7
Properly sort categories case-insensitively in filter widget. Closes #6708 .
2017-05-31 00:34:11 +03:00
Frédéric Brière
0979936266
Turn isSpecialItem() into a CategoryFilterModel static method.
2017-05-31 00:34:11 +03:00
Frédéric Brière
ba23b41616
Set "category" column as case-insensitive in TransferListSortModel.
...
(From what I can tell, it would appear that the sorting was already
case-insensitive by default. This makes it explicit.)
2017-05-31 00:34:10 +03:00
Frédéric Brière
412584e9c3
Leave categories order intact in "Add new torrent" dialog.
...
The categories are already properly sorted in AddNewTorrentDialog; this
second case-sensitive sort undid all that.
This partially addresses #6708 .
2017-05-31 00:34:09 +03:00
Thomas Piccirello
13aa3c3088
Use less permissive Content Security Policy
...
Adjust content order
2017-05-31 00:34:08 +03:00
thalieht
067c406c94
webUI: increase the number of digits after the decimal point
2017-05-31 00:34:08 +03:00
Eugene Shalygin
8536e79f2a
cmake: include searchengine resources
2017-05-31 00:34:07 +03:00
Thomas Piccirello
70b98d903e
Return status indicating if at least one torrent was successfully added
2017-05-31 00:34:06 +03:00
Chocobo1
1997a29769
Tweak CachedSettingValue
...
* Add another constructor to save a call to proxyFunc when its not needed
note that this call is a virtual function call
* Pass in proxyFunc by const reference
* Move get methods together
2017-05-31 00:34:05 +03:00
Chocobo1
f6e4f48386
Fix double click on system tray icon causing program to open and
...
minimize immediately
Closes #5826 .
Simply ignore DoubleClick event, as it always come after Trigger
event
2017-05-31 00:34:05 +03:00
Eugene Shalygin
10002984e6
Follow project coding style. Issue #2192 .
2017-05-31 00:34:04 +03:00
Frédéric Brière
2fa2d36c3b
findIncompleteFiles(): Replace dir listing with individual checks. Closes #6265 .
...
Looking for incomplete files in a new torrent by using a pre-generated
directory listing presents several disadvantages:
- It requires us to extract the top-level directory name (in case it
was renamed).
- It requires us to know whether the top-level directory was stripped.
- In the latter case, it may result in recursively traversing the
entire contents of all downloaded torrents.
Calling QFile::exists() individually for each file solves all these
issues.
In so doing, the handling of single-file and multiple-file torrents are
rendered pretty much identical, and can therefore be merged.
2017-05-31 00:34:03 +03:00
Eugene Shalygin
ceed9b468e
Do not attempt to show detailed tooltips without torrent metadata. Closes #6768 .
...
Computations for detailed tooltips are not protected against unavailable
metadata, that leads to asserts or crashes. But since those tooltips are
useless in this case, do not show them at all. Inform user that detailed
tooltip becomes available once torrent metadata are fetched.
2017-05-31 00:34:02 +03:00
sledgehammer999
f19854c054
[WebUI]Use the same layout in the Speed tab in preferences as the GUI.
2017-05-31 00:34:02 +03:00
sledgehammer999
989cbda29c
Add missing unit sizes in misc.js
2017-05-31 00:34:01 +03:00
sledgehammer999
881f79b76d
[WebUI]Use translatable strings in Statistics dialog.
2017-05-31 00:34:00 +03:00
sledgehammer999
51986f3ac8
[WebUI]Make the context obligatory for translatable strings. Also delete duplicate strings from extra translations.
2017-05-31 00:33:59 +03:00
Eugene Shalygin
943a837570
Fix release CMake build
...
write() is declared with __attribute__ ((__warn_unused_result__)) and as
such we shall check its return value. Took opportunity and adjusted
error reporting a bit: if writing to stderr fails, try to write to
stdout.
2017-05-31 00:33:59 +03:00
Vladimir Golovnev
b6e1b6e501
Revert "Guard the flag used for deferred session configure." ( #6733 )
...
This reverts commit 5cbc7b16c0 .
2017-05-31 00:33:57 +03:00
Chocobo1
cee308a517
Fix stack overflow in Utils::Gzip::decompress
...
Anyway, use std::vector to allocate memory on the heap (in compress() too)
2017-05-31 00:33:56 +03:00
Brian Kendall
390d22bc66
Fixed macOS-specific bug in AddNewTorrentDialog
...
Because AddNewTorrentDialog is a sheet in macOS, repositioning it causes bad things to happen, particularly if the main dialog is on a secondary monitor.
2017-05-31 00:33:56 +03:00
Chocobo1
e4a5b8d352
Setup DPI at startup
2017-05-31 00:33:55 +03:00
Chocobo1
2ba3104337
Remove workaround
...
Upstream confirmed bug fixed in Qt 5.2
2017-05-31 00:33:54 +03:00
Chocobo1
d1dfdd1306
Refactor
2017-05-31 00:33:53 +03:00
Chocobo1
8a02a69924
Temporary revert to the old behavior.
2017-05-31 00:33:53 +03:00