Stephan Beyer [Sat, 23 May 2020 16:12:58 +0000 (18:12 +0200)]
Show URL placeholder hint in wizard
In owncloudsetupnocredspage.ui, the URL input field leUrl has a
placeholder text saying "https://..." which is a very useful hint
for the user. However, in the OwncloudSetupPage constructor, the
placeholer text is overwritten by the return string of the theme's
wizardUrlHint() method. The NextcloudTheme class does not override
this virtual method, so an empty string is used.
To make available the "https://..." hint, it is moved from the
UI file to NextcloudTheme::wizardUrlHint(). Note that, if a
theme is used which does not allow a custom server URL, the
placeholder text is now empty. This makes sense because the
input field is disabled in that case.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Fri, 22 May 2020 22:44:08 +0000 (00:44 +0200)]
Change vertical size policy of URL input field in wizard
The input field for the nextcloud server URL is vertically too
big (because of the icon next to it in the same horizontal layout).
This commit solves this issue by changing its vertical size policy
from Ignored to Fixed.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Nextcloud bot [Sat, 23 May 2020 03:27:12 +0000 (03:27 +0000)]
[tx-robot] updated from transifex
István Váradi [Fri, 22 May 2020 16:46:30 +0000 (18:46 +0200)]
Merge pull request #2003 from ivaradi/debian-qt512
Do not build master for distributions without Qt 5.12 or later
Nextcloud bot [Fri, 22 May 2020 03:28:53 +0000 (03:28 +0000)]
[tx-robot] updated from transifex
István Váradi [Thu, 21 May 2020 19:00:51 +0000 (21:00 +0200)]
Do not build master for distributions without Qt 5.12
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
Kevin Ottens [Thu, 21 May 2020 15:12:04 +0000 (17:12 +0200)]
Merge pull request #1987 from sbeyer/fix-leaks
Fix a few leaks
Kevin Ottens [Thu, 21 May 2020 15:10:48 +0000 (17:10 +0200)]
Merge pull request #2001 from nextcloud/sbeyer-member-tidy
Use default member initialization
Nextcloud bot [Thu, 21 May 2020 03:28:21 +0000 (03:28 +0000)]
[tx-robot] updated from transifex
Stephan Beyer [Wed, 20 May 2020 23:43:34 +0000 (01:43 +0200)]
Use default member initializers in OCC::FolderStatusModel sub-structs
This allows to remove their explicit default constructor definitions.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Wed, 20 May 2020 23:41:33 +0000 (01:41 +0200)]
Use default member initializers in OCC::SyncJournalErrorBlacklistRecord
This allows to remove its explicit default constructor definition.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Wed, 20 May 2020 23:32:16 +0000 (01:32 +0200)]
Use default member initializers in OCC::SyncJournalDb sub-structs
This allows to remove their explicit default constructor definitions.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Mon, 18 May 2020 10:26:18 +0000 (12:26 +0200)]
Fix leak in OCC::AccountManager stub for FolderManTest
We simply use a static QObject using Q_GLOBAL_STATIC()
instead of allocating a leaking QObject on the heap.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Wed, 20 May 2020 22:28:23 +0000 (00:28 +0200)]
Fix leak in Systray
The member _trayEngine, allocated in the constructor, was leaking.
This commit sets the Systray instance as the Qt object tree parent of
the _trayEngine to fix the leak.
While at it, a few unused header includes have been removed.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Fri, 15 May 2020 23:10:34 +0000 (01:10 +0200)]
Fix leak in CloudProviderManager
The member _map, allocated in the constructor, was leaking.
The ad-hoc way to fix the leak would have been to add a destructor
that deletes _map. However, there is no good reason why _map has
to be a pointer to a QMap (instead of a QMap).
Hence this commit changes the type of the _map member from a QMap
pointer to a QMap.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Fri, 15 May 2020 23:00:55 +0000 (01:00 +0200)]
Fix leak in CloudProviderWrapper
The member _recentlyChanged, allocated in the constructor, was leaking.
The ad-hoc way to fix the leak would have been to add a destructor
that deletes _recentlyChanged. However, there is no good reason why
_recentlyChanged has to be a pointer to a QList (instead of a QList).
Hence this commit changes the type of the _recentlyChanged member
from a QList pointer to a QList.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Wed, 20 May 2020 22:42:26 +0000 (00:42 +0200)]
Use default member initializers in OCC::FolderDefinition
Using default member initializers (available since C++11) in
OCC::FolderDefinition allows to remove its explicit default
constructor, which is favorable.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Wed, 20 May 2020 22:39:27 +0000 (00:39 +0200)]
Remove unused member in OCC::FolderDefinition
OCC::FolderDefinition has a member called isClientSideEncrypted
that was introduced by commit
9318c487b9 but has not been used
in any way since.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Kevin Ottens [Wed, 20 May 2020 06:52:26 +0000 (08:52 +0200)]
Don't use int literals for bools
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Nextcloud bot [Wed, 20 May 2020 03:25:52 +0000 (03:25 +0000)]
[tx-robot] updated from transifex
Michael Schuster [Wed, 20 May 2020 02:14:14 +0000 (04:14 +0200)]
Merge pull request #1990 from nextcloud/use_auto_to_avoid_duplicated_type_names
Use auto to avoiding repeating type names
Michael Schuster [Wed, 20 May 2020 01:57:33 +0000 (03:57 +0200)]
Fix spacing
Signed-off-by: Michael Schuster <michael@schuster.ms>
Kevin Ottens [Mon, 18 May 2020 18:54:23 +0000 (20:54 +0200)]
Use auto to avoiding repeating type names
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Michael Schuster [Wed, 20 May 2020 01:27:45 +0000 (03:27 +0200)]
Merge pull request #1989 from nextcloud/remove_redundant_virtual
Remove useless virtual, better use override only
Michael Schuster [Wed, 20 May 2020 00:55:15 +0000 (02:55 +0200)]
Merge pull request #1988 from nextcloud/nullptr_everywhere
Use nullptr when appropriate
Michael Schuster [Wed, 20 May 2020 00:53:00 +0000 (02:53 +0200)]
Merge pull request #1992 from NeroBurner/patch-1
Update github links to desktop repository
Michael Schuster [Wed, 20 May 2020 00:30:45 +0000 (02:30 +0200)]
Use the default parameter: QUrl::path(QUrl::PrettyDecoded = 0x000000)
Change it to path() to be consistent with the other usages in the project :)
See: https://doc.qt.io/qt-5/qurl.html#path
Signed-off-by: Michael Schuster <michael@schuster.ms>
Kevin Ottens [Mon, 18 May 2020 18:39:16 +0000 (20:39 +0200)]
Use nullptr when appropriate
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Michael Schuster [Tue, 19 May 2020 23:31:34 +0000 (01:31 +0200)]
Merge pull request #1986 from nextcloud/properly_handle_denormalized_href_path
Properly handle denormalized href
Reinhold Gschweicher [Tue, 19 May 2020 15:23:42 +0000 (17:23 +0200)]
Update github links to desktop repository
Update the issue and open PR links with the new repository URL.
The old URL is forwarded, but feels not completely right.
Signed-off-by: Reinhold Gschweicher <pyro4hell@gmail.com>
Michael Schuster [Tue, 19 May 2020 18:45:05 +0000 (20:45 +0200)]
Merge pull request #1994 from nextcloud/cleanup_stale_files
Remove now unused Qt patch files
Kevin Ottens [Tue, 19 May 2020 18:21:40 +0000 (20:21 +0200)]
Merge pull request #1991 from sbeyer/improve-sanitizer-support
Improve sanitizer support
Kevin Ottens [Tue, 19 May 2020 17:42:26 +0000 (19:42 +0200)]
Remove now unused files
Those files all refer to Qt version older than 5.12, also they seemed
unused for a while now.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Michael Schuster [Tue, 19 May 2020 16:57:28 +0000 (18:57 +0200)]
Merge pull request #1979 from nextcloud/bump_qt_dependency_to_5_12
Stop supporting Qt older than 5.12
Stephan Beyer [Mon, 18 May 2020 17:54:09 +0000 (19:54 +0200)]
Add -fno-sanitize=vptr for SANITIZE_UNDEFINED=ON
The UndefinedBehaviorSanitizer includes the "vptr" check. This
check, however, needs typeinfo for OCC::AccountManager because
otherwise its stub for FileManTest leads to undefined references
when linking. Adding the -frtti flag to enable run-time typeinfo
did not solve the problem. I do not know another solution, so this
commit disables the vptr check.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Stephan Beyer [Fri, 15 May 2020 23:52:29 +0000 (01:52 +0200)]
Make sanitizer options more fine-grained
The SANITIZE_ADDRESS option of our CMake configuration activates the
AddressSanitizer (and UBSan in a non-working way) for the whole project
(although, by the way, its documentation pretends that it is only enabled
for tests).
This commit introduces new options SANITIZE_LEAK, SANITIZE_MEMORY,
SANITIZE_UNDEFINED, SANITIZE_THREAD. Each of these options (including
SANITIZE_ADDRESS) enables only the corresponding sanitizer.
Moreover, we mark all sanitizer options as advanced options, because these
options are only interesting for developers.
Note that some sanitizers are conflicting, that is, not all options can
be enabled simultaneously. Also, not all sanitizers are available for
all compilers and versions. We, however, do not check for this, instead
we let the compiler throw its errors in such cases.
The explicit usage of the Google Linker is removed, because it is not
necessary and can lead to problems with clang.
The commit can be considered a rewrite of cmake/modules/SanitizerFlags.cmake.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Nextcloud bot [Tue, 19 May 2020 03:24:08 +0000 (03:24 +0000)]
[tx-robot] updated from transifex
Kevin Ottens [Mon, 18 May 2020 18:45:20 +0000 (20:45 +0200)]
Remove useless virtual, better use override only
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Kevin Ottens [Mon, 18 May 2020 17:22:41 +0000 (19:22 +0200)]
Properly handle denormalized href
In case of denormalized paths in the dav href (presence of . or .. in
the path) simple string startsWith comparison wasn't enough to know if
said href ended up in the right namespace. That's why we're now using
QUrl (pretending local file since we don't have a full URL in the href)
to normalize the path before comparison.
This could happen with broken proxies for instance where we would
wrongly validate the dav information resulting in potentially surprising
syncing and name collisions.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Nextcloud bot [Mon, 18 May 2020 03:22:51 +0000 (03:22 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Sun, 17 May 2020 03:23:33 +0000 (03:23 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Sat, 16 May 2020 03:24:46 +0000 (03:24 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Fri, 15 May 2020 03:24:34 +0000 (03:24 +0000)]
[tx-robot] updated from transifex
Kevin Ottens [Thu, 14 May 2020 19:15:45 +0000 (21:15 +0200)]
Stop supporting Qt older than 5.12
This both removes older Qt from the CI and also adjust all the
find_package calls in CMakeLists.txt
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Nextcloud bot [Thu, 14 May 2020 03:25:33 +0000 (03:25 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Wed, 13 May 2020 03:24:15 +0000 (03:24 +0000)]
[tx-robot] updated from transifex
Michael Schuster [Tue, 12 May 2020 17:29:54 +0000 (19:29 +0200)]
Merge pull request #1974 from nextcloud/dont_silently_kill_debug
Don't silently kill debug messages
Michael Schuster [Tue, 12 May 2020 15:33:24 +0000 (17:33 +0200)]
Merge pull request #1972 from nextcloud/fix_fileutil_leak
Fix leak in FileUtil::IsChildFile
Kevin Ottens [Tue, 12 May 2020 15:33:13 +0000 (17:33 +0200)]
Don't silently kill debug messages
The message handler globally installed by the logger silently drop
messages if the logger is not logging. On top of it, it doesn't log
debug messages by default.
Anything not logged is currently silently discarded. This can come as a
surprise to a developer trying to contribute for the first time and
adding some debug message for some reason.
We're thus trying to strike a middle ground which is that debug messages
get a regular output if the logger isn't interested in them.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Kevin Ottens [Tue, 12 May 2020 12:32:34 +0000 (14:32 +0200)]
Fix leak in FileUtil::IsChildFile
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Nextcloud bot [Tue, 12 May 2020 03:23:08 +0000 (03:23 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Mon, 11 May 2020 03:24:25 +0000 (03:24 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Sun, 10 May 2020 03:25:39 +0000 (03:25 +0000)]
[tx-robot] updated from transifex
Michael Schuster [Fri, 8 May 2020 18:11:09 +0000 (20:11 +0200)]
Merge pull request #1965 from ivaradi/drop-xenial
Do not build for Xenial anymore
István Váradi [Thu, 7 May 2020 15:02:27 +0000 (17:02 +0200)]
Do not build for Xenial anymore.
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
Kevin Ottens [Thu, 7 May 2020 11:05:40 +0000 (13:05 +0200)]
Merge pull request #1961 from nextcloud/tray_window_is_dialog
Indicate this is a dialog and not a regular window
Kevin Ottens [Wed, 6 May 2020 13:50:28 +0000 (15:50 +0200)]
Indicate this is a dialog and not a regular window
This is necessary with some window managers which would otherwise
consider they can reposition and resize the tray window as they wish
(yes, even though the user can't do it directly).
This is for instance the case if you use the tiling mode scripts of
KWin. It automatically ignores dialogs but might force windows to be
fullscreen (which would badly break the layout in our case).
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Kevin Ottens [Thu, 7 May 2020 05:26:39 +0000 (07:26 +0200)]
Merge pull request #1962 from nextcloud/fix_svg_icon_loading
Force the default QQC2 style
Nextcloud bot [Thu, 7 May 2020 03:24:41 +0000 (03:24 +0000)]
[tx-robot] updated from transifex
Kevin Ottens [Wed, 6 May 2020 18:04:58 +0000 (20:04 +0200)]
Force the default QQC2 style
This works around a bug in KDE's qqc2-desktop-style which breaks buttons
with icons not based on a name. By forcing a style name the KDE Plasma
platformtheme plugin won't try to force qqc2-desktops-style anymore.
Can be removed once the bug in qqc2-desktop-style is gone.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Michael Schuster [Wed, 6 May 2020 23:45:46 +0000 (01:45 +0200)]
Merge pull request #1963 from nextcloud/drone-remove-qt-5.7-and-5.8
Drone: Remove CI builds for Qt 5.7 and 5.8
Michael Schuster [Wed, 6 May 2020 23:14:18 +0000 (01:14 +0200)]
Drone: Remove CI builds for Qt 5.7 and 5.8
Housekeeping and the new 2.7 Tray builds need at least Qt 5.9
Signed-off-by: Michael Schuster <michael@schuster.ms>
Michael Schuster [Mon, 4 May 2020 18:41:42 +0000 (20:41 +0200)]
Merge pull request #1957 from nextcloud/backport/1954/master
[master] Fix typos.
Michael Schuster [Mon, 4 May 2020 18:17:48 +0000 (20:17 +0200)]
Merge pull request #1949 from veddox/master
Resolve symlinks when checking for registered paths.
Sandro Knauß [Sun, 3 May 2020 20:54:50 +0000 (22:54 +0200)]
Fix typos.
Debian has a list of known typos in their checking tools.
Signed-off-by: Sandro Knauß <hefee@debian.org>
Michael Schuster [Mon, 4 May 2020 17:57:19 +0000 (19:57 +0200)]
Merge pull request #1955 from ivaradi/debian-cleanup
Remove unnecessary Debian build files
Michael Schuster [Mon, 4 May 2020 17:42:28 +0000 (19:42 +0200)]
Merge pull request #1956 from nextcloud/update-changelog
Update ChangeLog with 2.6 series.
Camila San [Mon, 4 May 2020 15:45:13 +0000 (17:45 +0200)]
Update ChangeLog with 2.6 series.
István Váradi [Mon, 4 May 2020 14:38:31 +0000 (16:38 +0200)]
Remove unnecessary Debian build files
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
Nextcloud bot [Mon, 4 May 2020 03:22:43 +0000 (03:22 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Sun, 3 May 2020 03:22:41 +0000 (03:22 +0000)]
[tx-robot] updated from transifex
Daniel Vedder [Sat, 2 May 2020 15:01:35 +0000 (17:01 +0200)]
Fixed symlink resolution for menu items.
Signed-off-by: Daniel Vedder <d.vedder@web.de>
Daniel Vedder [Sat, 2 May 2020 12:41:54 +0000 (14:41 +0200)]
Resolve symlinks when checking for registered paths.
Fixes issue #1948: https://github.com/nextcloud/desktop/issues/1948
The client already resolves symlinks when adding new paths to the
sync-list, but the Nautilus plugin did not do this yet, causing it
to not recognise synced folders if they were accessed via a symlink.
Signed-off-by: Daniel Vedder <d.vedder@web.de>
Nextcloud bot [Sat, 2 May 2020 03:23:10 +0000 (03:23 +0000)]
[tx-robot] updated from transifex
István Váradi [Fri, 1 May 2020 09:15:07 +0000 (11:15 +0200)]
Merge pull request #1896 from ivaradi/debian-new
Reorganize Debian build
Nextcloud bot [Fri, 1 May 2020 03:27:29 +0000 (03:27 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Thu, 30 Apr 2020 03:26:57 +0000 (03:26 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Wed, 29 Apr 2020 03:23:26 +0000 (03:23 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Tue, 28 Apr 2020 03:24:02 +0000 (03:24 +0000)]
[tx-robot] updated from transifex
István Váradi [Mon, 27 Apr 2020 17:17:30 +0000 (19:17 +0200)]
Add Groovy build
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
István Váradi [Wed, 25 Mar 2020 18:13:07 +0000 (19:13 +0100)]
Allow specifying the base commit and version in the configuration file
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
István Váradi [Tue, 24 Mar 2020 19:09:43 +0000 (20:09 +0100)]
Change Debian build to the new more Debian-y way
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
István Váradi [Mon, 27 Apr 2020 15:00:37 +0000 (17:00 +0200)]
Merge pull request #1895 from ivaradi/debian-version
Debian versioning updates
Nextcloud bot [Mon, 27 Apr 2020 03:22:26 +0000 (03:22 +0000)]
[tx-robot] updated from transifex
István Váradi [Sun, 26 Apr 2020 14:42:04 +0000 (16:42 +0200)]
Merge pull request #1943 from ivaradi/groovy
Add Groovy-specific files
István Váradi [Sun, 26 Apr 2020 08:08:58 +0000 (10:08 +0200)]
Add Groovy-specific files
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
István Váradi [Sun, 26 Apr 2020 07:24:53 +0000 (09:24 +0200)]
Merge pull request #1942 from ivaradi/disco-groovy
Remove Ubuntu Disco, add Groovy
István Váradi [Sun, 26 Apr 2020 06:40:37 +0000 (08:40 +0200)]
Remove Ubuntu Disco, add Groovy
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
Nextcloud bot [Sun, 26 Apr 2020 03:23:13 +0000 (03:23 +0000)]
[tx-robot] updated from transifex
Dominique Fuchs [Sat, 25 Apr 2020 12:57:32 +0000 (14:57 +0200)]
Merge pull request #1884 from nicolasfella/menuaction
[dolphin] Use menuAction() instead of manual creation
Dominique Fuchs [Sat, 25 Apr 2020 11:43:42 +0000 (13:43 +0200)]
Merge pull request #1919 from taaem/fix-dbus-activation
CloudProviders: Use absolute path in dbus file
Dominique Fuchs [Sat, 25 Apr 2020 11:37:29 +0000 (13:37 +0200)]
Merge pull request #1922 from taaem/fix-recent-files
Fix cloudprovider crashing - don't clear the _recentMenu pointer
Dominique Fuchs [Sat, 25 Apr 2020 11:18:10 +0000 (13:18 +0200)]
Merge branch 'master' into menuaction
Dominique Fuchs [Sat, 25 Apr 2020 10:23:25 +0000 (12:23 +0200)]
Merge pull request #1937 from ivaradi/xenial-compat
Qt 5.5 compatibility #ifdef
Dominique Fuchs [Sat, 25 Apr 2020 10:18:56 +0000 (12:18 +0200)]
Merge pull request #1893 from nicolasfella/override
override specifier missing
Dominique Fuchs [Sat, 25 Apr 2020 10:17:29 +0000 (12:17 +0200)]
Merge pull request #1887 from nicolasfella/colon
[dolphin] Fix overlays when filename has a colon
Dominique Fuchs [Sat, 25 Apr 2020 10:15:33 +0000 (12:15 +0200)]
Merge pull request #1889 from nicolasfella/applicationengine
Use QQmlApplicationEngine instead of QQmlEngine
Nextcloud bot [Fri, 24 Apr 2020 03:39:24 +0000 (03:39 +0000)]
[tx-robot] updated from transifex
István Váradi [Sun, 19 Apr 2020 15:11:38 +0000 (17:11 +0200)]
Qt 5.5 compatibility #ifdef
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
Nextcloud bot [Thu, 23 Apr 2020 03:29:16 +0000 (03:29 +0000)]
[tx-robot] updated from transifex