nextcloud-desktop.git
6 years agoMerge pull request #2063 from nextcloud/fix/mac-bundleinfo-dark-mode-optin
Michael Schuster [Sun, 7 Jun 2020 14:38:03 +0000 (16:38 +0200)]
Merge pull request #2063 from nextcloud/fix/mac-bundleinfo-dark-mode-optin

macOS: Opt In to Dark Mode for building against older macOS SDKs < 10.14

6 years agomacOS: Opt In to Dark Mode for building against older macOS SDKs < 10.14
Michael Schuster [Sun, 7 Jun 2020 14:21:02 +0000 (16:21 +0200)]
macOS: Opt In to Dark Mode for building against older macOS SDKs < 10.14

Required for our build server that uses an older SDK to support previous macOS versions.

See: https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_macos_app

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMerge pull request #1749 from nextcloud/fix/mac-2.7-qml-tray-build
Michael Schuster [Sun, 7 Jun 2020 14:17:30 +0000 (16:17 +0200)]
Merge pull request #1749 from nextcloud/fix/mac-2.7-qml-tray-build

macOS: Use macdeployqt instead of the old admin/osx/macdeployqt.py

6 years agomacOS: Build nextcloudcmd after gui and run macdeployqt with the -executable option
Michael Schuster [Sat, 6 Jun 2020 17:53:48 +0000 (19:53 +0200)]
macOS: Build nextcloudcmd after gui and run macdeployqt with the -executable option

- src/CMakeLists.txt: Switch build order to build cmd before gui
- src/gui/CMakeLists.txt: Use the -executable option for a combined run of macdeployqt

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoCopy nextcloudcmd post-build instead of macdeployqt when building macOS bundle
Dominique Fuchs [Sat, 25 Jan 2020 14:10:22 +0000 (15:10 +0100)]
Copy nextcloudcmd post-build instead of macdeployqt when building macOS bundle

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
6 years agomacOS: Use macdeployqt instead of the old admin/osx/macdeployqt.py
Michael Schuster [Wed, 22 Jan 2020 03:53:03 +0000 (04:53 +0100)]
macOS: Use macdeployqt instead of the old admin/osx/macdeployqt.py

In order to build the new 2.7 releases (new QML dependencies) without manually
modifying the old Python script each time, rely on Qt's standard tool instead.

This should streamline the build systems for upcoming dependency changes.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMerge pull request #2061 from nextcloud/enh/version-display-cmd
Michael Schuster [Sun, 7 Jun 2020 12:38:48 +0000 (14:38 +0200)]
Merge pull request #2061 from nextcloud/enh/version-display-cmd

Improve command line version info and help display (gui & cmd)

6 years agoImprove command line version info and help display to streamline gui and cmd
Michael Schuster [Sat, 6 Jun 2020 18:04:48 +0000 (20:04 +0200)]
Improve command line version info and help display to streamline gui and cmd

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 7 Jun 2020 03:25:11 +0000 (03:25 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #2060 from nextcloud/fix/qt-5.15.0-build-error
Michael Schuster [Sun, 7 Jun 2020 01:23:15 +0000 (03:23 +0200)]
Merge pull request #2060 from nextcloud/fix/qt-5.15.0-build-error

Fix Qt 5.15.0 build error (missing include)

6 years agoFix Qt 5.15.0 build error (missing include)
Michael Schuster [Sun, 7 Jun 2020 00:43:45 +0000 (02:43 +0200)]
Fix Qt 5.15.0 build error (missing include)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 6 Jun 2020 03:27:24 +0000 (03:27 +0000)]
[tx-robot] updated from transifex

6 years agoRename rebase.yaml to rebase.yml for consistency
Stephan Beyer [Thu, 4 Jun 2020 22:37:44 +0000 (00:37 +0200)]
Rename rebase.yaml to rebase.yml for consistency

YAML files here use the .yml extension, not the .yaml extension.
Hence the GitHub workflow file is renamed.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 5 Jun 2020 03:24:18 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years agoAdd some more make_unique calls
Kevin Ottens [Wed, 27 May 2020 18:00:11 +0000 (20:00 +0200)]
Add some more make_unique calls

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 4 Jun 2020 03:24:30 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years agoCleanup the missing braced init list returns
Kevin Ottens [Wed, 27 May 2020 18:19:15 +0000 (20:19 +0200)]
Cleanup the missing braced init list returns

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoAdd install instructions for nextcloudcmd
shile [Wed, 27 May 2020 10:03:23 +0000 (18:03 +0800)]
Add install instructions for nextcloudcmd

Signed-off-by: shile <13051960278@163.com>
6 years agoUse default member init when applicable
Kevin Ottens [Thu, 28 May 2020 14:59:24 +0000 (16:59 +0200)]
Use default member init when applicable

This also fixes a couple of warnings at places (out of order init for
instance) and a potential bug in the webflow credentials / qtkeychain
integration.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoAdd missing auto opportunities
Kevin Ottens [Wed, 27 May 2020 18:23:36 +0000 (20:23 +0200)]
Add missing auto opportunities

Somehow forgot to run it on the updater code

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMerge pull request #2047 from nextcloud/clang-cppcoreguidelines-init-var
Kevin Ottens [Wed, 3 Jun 2020 08:35:24 +0000 (10:35 +0200)]
Merge pull request #2047 from nextcloud/clang-cppcoreguidelines-init-var

Do not declare local variables without an initial value.

6 years agoDo not declare local variables without an initial value.
Camila San [Fri, 29 May 2020 13:07:05 +0000 (15:07 +0200)]
Do not declare local variables without an initial value.

Signed-off-by: Camila San <hello@camila.codes>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 3 Jun 2020 03:24:59 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #1257 from ivan-cukic/ivan/icon-for-unencrypted-subdir
Kevin Ottens [Tue, 2 Jun 2020 16:37:25 +0000 (18:37 +0200)]
Merge pull request #1257 from ivan-cukic/ivan/icon-for-unencrypted-subdir

Show a broken lock icon for unencrypted subdirectory

6 years agoShow broken encryption icon only in non-empty folders
Kevin Ottens [Tue, 2 Jun 2020 14:03:50 +0000 (16:03 +0200)]
Show broken encryption icon only in non-empty folders

This should address Tobias' concerns regarding the icon being
misleading. Now we basically do the following inside an encrypted folder
parent:
 * encrypted folders get the encrypted icon;
 * non-encrypted empty folders get the regular folder icon;
 * non-encrypted non-empty folders get the broken encryption icon.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoShow a broken lock icon for unencrypted subdirectory
Ivan Čukić [Thu, 28 May 2020 18:23:55 +0000 (20:23 +0200)]
Show a broken lock icon for unencrypted subdirectory

The E2E application allows creating unencrypted subdirectories
in an encrypted parent. This is a big privacy problem.

This patch shows a red broken lock icon for these subdirectories
in the NC client UI.

Signed-off-by: Ivan Čukić <ivan.cukic@kde.org>
6 years agoMerge pull request #1235 from ivan-cukic/ivan/fixing-leaks
Michael Schuster [Tue, 2 Jun 2020 15:47:08 +0000 (17:47 +0200)]
Merge pull request #1235 from ivan-cukic/ivan/fixing-leaks

Fixing memory leaks in the encryption module

6 years agoIntroduced RAII classes for other OpenSSL resources
Ivan Čukić [Tue, 7 May 2019 18:57:01 +0000 (20:57 +0200)]
Introduced RAII classes for other OpenSSL resources

6 years agoFixing memory leaks in the encryption module
Ivan Čukić [Sun, 5 May 2019 20:24:12 +0000 (22:24 +0200)]
Fixing memory leaks in the encryption module

Due to usage of early-returns, combined with malloc/free,
several buffers that get allocated are leaked when an error
occurs.

Several functions had potential leaks:

 - `encryptStringSymmetric` leaked `ctext`
 - `EncryptionHelper::fileDecryption` leaked `out`
 - `EncryptionHelper::fileEncryption` leaked `out`

Most of the functions had leaks of the cypher context.

This patch uses `QByteArray` as the handler for the dynamically
allocated buffers for openssl to operate on. This also removes
the need for conversions from malloc'd buffers to `QByteArray`
variables previously present in the code.

It also introduces a `CypherCtx` thin wrapper class to provide
a leak-free handling of `EVP_CIPHER_CTX`.

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 2 Jun 2020 03:24:55 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 1 Jun 2020 03:24:28 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #2051 from nextcloud/remove-submodule-binary
Michael Schuster [Sun, 31 May 2020 14:06:22 +0000 (16:06 +0200)]
Merge pull request #2051 from nextcloud/remove-submodule-binary

Remove Submodule binary (old upstream binaries)

6 years agoRemove Submodule binary (old upstream binaries)
Michael Schuster [Sun, 31 May 2020 13:47:36 +0000 (15:47 +0200)]
Remove Submodule binary (old upstream binaries)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 31 May 2020 03:24:59 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 30 May 2020 03:24:55 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #1940 from nextcloud/traywindow-listview-actions
Michael Schuster [Fri, 29 May 2020 19:14:21 +0000 (21:14 +0200)]
Merge pull request #1940 from nextcloud/traywindow-listview-actions

Implemented share functionality in tray window and changed buttons

6 years agoShareDialog: Pointer cosmetics
Michael Schuster [Fri, 29 May 2020 18:57:52 +0000 (20:57 +0200)]
ShareDialog: Pointer cosmetics

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMerge branch 'master' into traywindow-listview-actions
Michael Schuster [Fri, 29 May 2020 17:08:21 +0000 (19:08 +0200)]
Merge branch 'master' into traywindow-listview-actions

6 years agoShareDialog: Add further checks for the _manager member ptr
Michael Schuster [Fri, 29 May 2020 16:28:52 +0000 (18:28 +0200)]
ShareDialog: Add further checks for the _manager member ptr

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoShareDialog: Fix crash, properly init member pointers
Michael Schuster [Fri, 29 May 2020 16:12:36 +0000 (18:12 +0200)]
ShareDialog: Fix crash, properly init member pointers

_manager ptr only got initialized in the constructor when sharingPossible was set to true

Changes:
- Move member ptr inits from constructor to the header file's class definition
- Init _manager: set to nullptr too
- Add check for _manager to avoid crash in showSharingUi()

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 29 May 2020 03:26:32 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

6 years agoTry to fix the rebase action
Kevin Ottens [Thu, 28 May 2020 17:05:57 +0000 (19:05 +0200)]
Try to fix the rebase action

I think I got the if clause wrong regarding limiting the command only to
member users. Let's move this out of the way for now.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoRemove the last redundant void arg I left behind
Kevin Ottens [Wed, 27 May 2020 18:14:41 +0000 (20:14 +0200)]
Remove the last redundant void arg I left behind

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoAdd a GitHub Action to easily rebase PRs
Kevin Ottens [Thu, 28 May 2020 15:43:56 +0000 (17:43 +0200)]
Add a GitHub Action to easily rebase PRs

This will make it easier to have a semi-linear commit history

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 28 May 2020 03:30:34 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #2035 from nextcloud/add_clang_tidy_pipeline_to_drone
Michael Schuster [Wed, 27 May 2020 17:14:08 +0000 (19:14 +0200)]
Merge pull request #2035 from nextcloud/add_clang_tidy_pipeline_to_drone

Add clang tidy pipeline to drone

6 years agoRun clang-tidy from the 5.12-clang pipeline
Kevin Ottens [Wed, 27 May 2020 16:44:25 +0000 (18:44 +0200)]
Run clang-tidy from the 5.12-clang pipeline

This should pass, with the minimal .clang-tidy which was provided. Other
PRs should be done to enable further checks.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoUpgrade to the latest client image
Kevin Ottens [Wed, 27 May 2020 14:43:24 +0000 (16:43 +0200)]
Upgrade to the latest client image

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMerge pull request #2032 from nextcloud/insulate_testutility_from_user_settings
Michael Schuster [Wed, 27 May 2020 14:10:57 +0000 (16:10 +0200)]
Merge pull request #2032 from nextcloud/insulate_testutility_from_user_settings

testLaunchOnStartup shouldn't fail on dev setup

6 years agoMerge pull request #2023 from nextcloud/use_return_braced_init_list
Michael Schuster [Wed, 27 May 2020 14:08:19 +0000 (16:08 +0200)]
Merge pull request #2023 from nextcloud/use_return_braced_init_list

Use the return braced init list pattern

6 years agotestLaunchOnStartup shouldn't fail on dev setup
Kevin Ottens [Wed, 27 May 2020 13:11:25 +0000 (15:11 +0200)]
testLaunchOnStartup shouldn't fail on dev setup

This test was failing locally for me. Indeed, through QStandardPaths it
was finding the user settings of my production client and not having the
initial state it expected. Using QStandardPaths test mode then it starts
from a clean slate every time.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoUse the return braced init list pattern
Kevin Ottens [Wed, 27 May 2020 12:36:07 +0000 (14:36 +0200)]
Use the return braced init list pattern

This way we avoid repeating the return type while it is already known.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMerge pull request #2024 from nextcloud/use_raw_string_literals
Michael Schuster [Wed, 27 May 2020 03:54:54 +0000 (05:54 +0200)]
Merge pull request #2024 from nextcloud/use_raw_string_literals

Use raw string literals when appropriate

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 27 May 2020 03:26:35 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #2021 from nextcloud/use_default_for_trivial_ctor_and_dtor
Michael Schuster [Wed, 27 May 2020 03:17:24 +0000 (05:17 +0200)]
Merge pull request #2021 from nextcloud/use_default_for_trivial_ctor_and_dtor

Use = default for trivial ctors and dtors

6 years agoMerge pull request #2020 from nextcloud/use_make_unique
Michael Schuster [Wed, 27 May 2020 03:10:41 +0000 (05:10 +0200)]
Merge pull request #2020 from nextcloud/use_make_unique

Use make_unique when appropriate

6 years agoMerge pull request #2019 from nextcloud/remove_redundant_void_argument
Michael Schuster [Wed, 27 May 2020 03:07:52 +0000 (05:07 +0200)]
Merge pull request #2019 from nextcloud/remove_redundant_void_argument

Remove redundant void argument list

6 years agoMerge pull request #2018 from nextcloud/use_using
Michael Schuster [Wed, 27 May 2020 03:04:55 +0000 (05:04 +0200)]
Merge pull request #2018 from nextcloud/use_using

Use using instead of typedef

6 years agoMerge pull request #2017 from nextcloud/remove_redundant_initializer
Michael Schuster [Wed, 27 May 2020 03:01:34 +0000 (05:01 +0200)]
Merge pull request #2017 from nextcloud/remove_redundant_initializer

Remove redundant initializer

6 years agoUse raw string literals when appropriate
Kevin Ottens [Tue, 26 May 2020 18:13:51 +0000 (20:13 +0200)]
Use raw string literals when appropriate

This is especially nice for Windows paths.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoUse = default for trivial ctors and dtors
Kevin Ottens [Mon, 25 May 2020 19:33:24 +0000 (21:33 +0200)]
Use = default for trivial ctors and dtors

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoUse make_unique when appropriate
Kevin Ottens [Mon, 25 May 2020 19:08:43 +0000 (21:08 +0200)]
Use make_unique when appropriate

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoRemove redundant void argument list
Kevin Ottens [Mon, 25 May 2020 18:32:55 +0000 (20:32 +0200)]
Remove redundant void argument list

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoUse using instead of typedef
Kevin Ottens [Mon, 25 May 2020 18:26:45 +0000 (20:26 +0200)]
Use using instead of typedef

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoRemove redundant initializer
Kevin Ottens [Mon, 25 May 2020 18:12:09 +0000 (20:12 +0200)]
Remove redundant initializer

This is the same value than the initializer value in the header, no need
to repeat it.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoGet rid of redundant parentheses
Kevin Ottens [Mon, 25 May 2020 18:03:01 +0000 (20:03 +0200)]
Get rid of redundant parentheses

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 25 May 2020 03:23:39 +0000 (03:23 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 24 May 2020 03:24:41 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #2006 from nextcloud/sbeyer-improve-wizard-url-field
Michael Schuster [Sat, 23 May 2020 18:06:21 +0000 (20:06 +0200)]
Merge pull request #2006 from nextcloud/sbeyer-improve-wizard-url-field

Improve URL input field in Wizard

6 years agoReplace "https://..." hint by "https://host:port"
Stephan Beyer [Sat, 23 May 2020 16:27:46 +0000 (18:27 +0200)]
Replace "https://..." hint by "https://host:port"

The new hint is a little more verbose and provides more information
than the old one.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
6 years agoShow URL placeholder hint in wizard
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>
6 years agoChange vertical size policy of URL input field in wizard
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>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 23 May 2020 03:27:12 +0000 (03:27 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #2003 from ivaradi/debian-qt512
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

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 22 May 2020 03:28:53 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

6 years agoDo not build master for distributions without Qt 5.12
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>
6 years agoMerge pull request #1987 from sbeyer/fix-leaks
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

6 years agoMerge pull request #2001 from nextcloud/sbeyer-member-tidy
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

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 21 May 2020 03:28:21 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

6 years agoUse default member initializers in OCC::FolderStatusModel sub-structs
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>
6 years agoUse default member initializers in OCC::SyncJournalErrorBlacklistRecord
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>
6 years agoUse default member initializers in OCC::SyncJournalDb sub-structs
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>
6 years agoFix leak in OCC::AccountManager stub for FolderManTest
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>
6 years agoFix leak in Systray
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>
6 years agoFix leak in CloudProviderManager
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>
6 years agoFix leak in CloudProviderWrapper
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>
6 years agoUse default member initializers in OCC::FolderDefinition
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>
6 years agoRemove unused member in OCC::FolderDefinition
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>
6 years agoDon't use int literals for bools
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>
6 years agoMerge remote-tracking branch 'origin/master' into traywindow-listview-actions
Dominique Fuchs [Wed, 20 May 2020 08:48:46 +0000 (10:48 +0200)]
Merge remote-tracking branch 'origin/master' into traywindow-listview-actions

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 20 May 2020 03:25:52 +0000 (03:25 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #1990 from nextcloud/use_auto_to_avoid_duplicated_type_names
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

6 years agoFix spacing
Michael Schuster [Wed, 20 May 2020 01:57:33 +0000 (03:57 +0200)]
Fix spacing

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoUse auto to avoiding repeating type names
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>
6 years agoMerge pull request #1989 from nextcloud/remove_redundant_virtual
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

6 years agoMerge pull request #1988 from nextcloud/nullptr_everywhere
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

6 years agoMerge pull request #1992 from NeroBurner/patch-1
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

6 years agoUse the default parameter: QUrl::path(QUrl::PrettyDecoded = 0x000000)
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>
6 years agoUse nullptr when appropriate
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>
6 years agoMerge pull request #1986 from nextcloud/properly_handle_denormalized_href_path
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