Martchus
2370fe1ef5
Let CMake generate code for test application
2019-01-13 22:16:23 +01:00
Martchus
99624197cd
Improve spelling of "Syncthing-Unit" in German translation
2019-01-13 17:56:33 +01:00
Martchus
f74dbe2799
Prevent enless connection attempts in connector test
...
Those are observable on misc OBS builds. This hopefully prevents
perpetual OBS builds and should also allow to actually investigate
what the problem is.
2019-01-13 17:48:39 +01:00
Martchus
028a456c4e
Update translations
2018-12-29 20:40:40 +01:00
Martchus
d48c7be6fa
Set the parents of the QActions for Dolphin integration correctly
...
The parent must be the plugin itself. Otherwise the QActions are
not destroyed when the menu vanishes.
2018-12-26 01:18:28 +01:00
Martchus
951235d082
Improve logging in Dolphin integration
2018-12-26 01:16:38 +01:00
Martchus
daa2d42ef2
Delete menu later to prevent segfault
2018-12-26 01:15:28 +01:00
Martchus
267cbd7dad
Document SyncthingConnection::readDevRejected()
2018-12-26 01:14:19 +01:00
Martchus
1156721822
Ensure not to continue reconnecting while still aborting
2018-12-26 01:14:01 +01:00
Martchus
ea2e26aace
Don't use newDirs/newDevs for endResetModel()
...
* These events might not be emitted in all error cases.
So it would be wrong to rely on that.
* Reduces redundant code.
2018-12-25 02:33:57 +01:00
Martchus
67723bfa27
Set status to disconnected on error due to insufficient config
2018-12-25 02:31:18 +01:00
Martchus
c83df582b6
Fix subtile bugs on reconnect
...
* Ensure previous long polling requests for events are aborted
before connecting again
* Ensure results from previous requests are always discarded
after aborting to reconnect
2018-12-25 02:30:13 +01:00
Martchus
d3c6eda0a6
Store API key for Dolphin integration persistently
...
Only storing the key for the last selected config should
be sufficient.
2018-12-24 17:35:54 +01:00
Martchus
ad42c24c96
Prevent reading QNetworkReply in error case when not bytes available
2018-12-24 17:35:10 +01:00
Martchus
1d5b90a693
Allow always to change config
2018-12-24 17:19:11 +01:00
Martchus
10747bfdf9
Handle config issues in Dolphin integration
...
* Check whether URL is present
* Allow user to enter API key manually
2018-12-24 17:17:09 +01:00
Martchus
35903fc996
Simulate flaky syncthing service
2018-12-23 21:28:43 +01:00
Martchus
adc0fa724e
Ensure TrayIcon is immediately visible
2018-12-23 21:17:51 +01:00
Martchus
5afbd4e664
Fix typo
2018-12-23 21:17:31 +01:00
Martchus
8b6cf6a282
Remove unused function in TrayWidget
2018-12-23 21:17:24 +01:00
Martchus
cdd78fb026
Fix typo in code for mocked service configuration
2018-12-23 19:42:17 +01:00
Martchus
db35ce14be
Update translations
2018-12-22 17:11:38 +01:00
Martchus
52f6e51e1a
Fix wrong "Rescan ..." in file item action
2018-12-22 16:27:08 +01:00
Martchus
b599da308e
Update translations for Dolphin menu
2018-11-30 17:51:15 +01:00
Martchus
a21d273ae1
Prevent all '&' in Dolphin menu
2018-11-30 17:47:12 +01:00
Martchus
388b3ef6b1
Quote dir name in Dolphin menu
2018-11-30 17:46:48 +01:00
Martchus
85b569a3c9
Add a description for each fileitemactionplugin class
2018-11-28 21:23:09 +01:00
Martchus
f901386478
Split fileitemactionplugin code into multiple files
2018-11-28 21:23:09 +01:00
Martchus
882a2a5d35
Make Dolphin integration configurable
...
* Allow to select Syncthing config file manually
* Show error if config file can not be located
2018-11-28 21:22:57 +01:00
Martchus
ba4012fb36
Update translations
2018-11-13 18:01:11 +01:00
Martchus
d763a755ac
Fix typo in 'Connected to ...'
2018-11-13 18:00:30 +01:00
Martchus
6dc521599f
Adapt tests to changes in dir error handling
2018-11-03 21:55:31 +01:00
Martchus
1d75ee2656
Improve initialization of roleNames()
2018-11-03 21:47:30 +01:00
Martchus
d803f83d0f
Update translations
2018-11-03 21:41:44 +01:00
Martchus
4a42a3f0c0
Fix and refactor directory error handling
...
* Rely not only on the FolderErrors event
* Request pull errors when opening the dialog
* Use "pullErrors" from FolderSummary
* Move code for directory error dialog into
its own class
This should fix that sometimes obsolete errors
were still displayed or actually present errors
missing.
2018-11-03 21:30:17 +01:00
Martchus
dcbc19cf8c
Adapt mocking to latest changes
...
* Cover all required requests so the connection can be
established without errors
* Add more events to test error handling
* Fix definition of LIB_SYNCTHING_CONNECTOR_CONNECTION_MOCKED
after syncthingconnection.cpp split
2018-11-03 20:44:11 +01:00
Martchus
930691ebdc
Rename ErrorViewDialog to InternalErrorsDialog
2018-11-03 18:15:10 +01:00
Martchus
f462530183
Reduce nesting in DirView::mouseReleaseEvent()
2018-11-03 17:54:12 +01:00
Martchus
c5d22d8984
Adapt tests to changed SyncthingDir::assignStatus()
2018-11-02 23:39:15 +01:00
Martchus
ad57a0ac9f
Adapt tests to changed status initialization
2018-11-02 23:38:40 +01:00
Martchus
0cc291ae85
Initialize status of SyncthingDev
2018-11-02 23:37:35 +01:00
Martchus
0ef2bf919a
Remove duplicated status recalculation
2018-11-02 22:15:16 +01:00
Martchus
9817be858d
Update stateChanged in readDirSummary()
2018-11-02 22:10:18 +01:00
Martchus
038cb130b7
Don't emit notifications for folder errors
2018-11-02 21:49:24 +01:00
Martchus
25ae9266a8
Discard obsolete folder errors
...
* Discard folder errors older than the last "sync" state
* Unfortunately we don't know the the time of the last
sync from the beginning. To prevent showing obsolete
errors in this state, discard all errors if the status
changes to something other than "out-of-syn".
2018-11-02 21:47:27 +01:00
Martchus
dd5cf12b1c
Improve inserting address from config file
...
* Assume local connection if address is eg. 0.0.0.0
* Use isLocal() from utils which considers the hostname
and interfaces as well
2018-11-02 20:57:25 +01:00
Martchus
ec02a9e483
Show "Select directory ..." button in web view
2018-10-28 17:32:31 +01:00
Martchus
e59a80c0f6
Fix showing native dir selection from web view
2018-10-28 17:04:10 +01:00
Martchus
cdff9fd974
Allow forwarding JS console of web view to stderr
2018-10-28 17:03:23 +01:00
Martchus
e43a6c1c98
Adapt Qt WebKit specific code to latest adjustments
2018-10-28 16:29:11 +01:00