nextcloud-desktop.git
5 years agoUse properties to get user details
Nicolas Fella [Tue, 16 Jun 2020 12:06:30 +0000 (14:06 +0200)]
Use properties to get user details

Convert imperative QML code to declarative code using property bindings

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
5 years agoPort from context properties to singletons
Nicolas Fella [Mon, 15 Jun 2020 15:01:39 +0000 (17:01 +0200)]
Port from context properties to singletons

Context properties are deprecated and will be removed in Qt 6.
QML singletons are the better option here, especially given that
UserModel and UserAppsModel already are singletons.

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 16 Jun 2020 03:26:18 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

5 years agoCreate HeaderButton QML component
Nicolas Fella [Mon, 15 Jun 2020 13:35:34 +0000 (15:35 +0200)]
Create HeaderButton QML component

Deduplicate the Button code by moving it into a separate file.

Also use the same background code for the apps button since as far as I can tell it didn't behave any different

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
5 years agoMerge pull request #1939 from nextcloud/fix-tray-multiscreen
Kevin Ottens [Mon, 15 Jun 2020 12:49:35 +0000 (14:49 +0200)]
Merge pull request #1939 from nextcloud/fix-tray-multiscreen

Major multi monitor improvements and rewrite of tray window positioning

5 years agoAdd some debug output for the window placement
Kevin Ottens [Thu, 11 Jun 2020 17:27:40 +0000 (19:27 +0200)]
Add some debug output for the window placement

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoFix crash caused by setting Tray window screen pointer on the QML side
Michael Schuster [Thu, 4 Jun 2020 18:26:39 +0000 (20:26 +0200)]
Fix crash caused by setting Tray window screen pointer on the QML side

Seems like Qt sometimes doesn't like the QML window's screen property to be set
to a C++ (QVariant) pointer value, so we use the index: Qt.application.screens[]

See Qt docs: https://doc.qt.io/qt-5/qml-qtquick-window-window.html#screen-prop

This fix returns the matching window's index from the QGuiApplication::screens()
list to the QML side, instead of the window pointer.

Steps to reproduce the crash with the previous code:
- Open the Tray menu and close it a few times,
  or scroll randomly up and down in its activity list.

Tested with Qt 5.12.5

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoRemove Submodule qtmacgoodies again
Michael Schuster [Sun, 31 May 2020 13:34:03 +0000 (15:34 +0200)]
Remove Submodule qtmacgoodies again

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoTry make taskbar position heuristic more readable
Kevin Ottens [Mon, 25 May 2020 17:02:10 +0000 (19:02 +0200)]
Try make taskbar position heuristic more readable

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMake the reference point independent of the window
Kevin Ottens [Wed, 20 May 2020 19:36:08 +0000 (21:36 +0200)]
Make the reference point independent of the window

This leads to simplifying the computation code quite a bit as well.
Indeed we're separating concern between what is window size dependent or
not and that shows.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoGet rid of screenIndex
Kevin Ottens [Wed, 20 May 2020 18:03:08 +0000 (20:03 +0200)]
Get rid of screenIndex

This was leading to the same logic being duplicated several times. It's
fine to return the QScreen* on the QML side directly but wrapped into a
QVariant.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMove all the position computation on the C++ side
Kevin Ottens [Wed, 20 May 2020 17:36:57 +0000 (19:36 +0200)]
Move all the position computation on the C++ side

The API is just more convenient there, the rect and point types on the
QML side are just pale shadow of their C++ counterparts.

Also improved a bit the constness of the Systray class.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRename tbOrientation into taskbarOrientation
Kevin Ottens [Wed, 20 May 2020 16:07:01 +0000 (18:07 +0200)]
Rename tbOrientation into taskbarOrientation

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoIntroduce a screenRect as coordinate space
Kevin Ottens [Wed, 20 May 2020 15:59:40 +0000 (17:59 +0200)]
Introduce a screenRect as coordinate space

The top left corner of that screenRect is (0,0) or based on
(virtualX,virtualY) depending on the platform. This leads to easier
reduction in code duplication.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoUse TaskBarPosition enum on the QML side
Kevin Ottens [Wed, 20 May 2020 13:17:54 +0000 (15:17 +0200)]
Use TaskBarPosition enum on the QML side

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMore simplifications, also transfer of more tray positioning logic to C++ backend.
Dominique Fuchs [Wed, 20 May 2020 08:12:55 +0000 (10:12 +0200)]
More simplifications, also transfer of more tray positioning logic to C++ backend.

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
5 years agoMajor multi monitor improvements and rewrite of tray window positioning
Dominique Fuchs [Fri, 24 Apr 2020 16:34:11 +0000 (18:34 +0200)]
Major multi monitor improvements and rewrite of tray window positioning

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 15 Jun 2020 03:25:35 +0000 (03:25 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 14 Jun 2020 03:23:26 +0000 (03:23 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 12 Jun 2020 03:26:31 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 11 Jun 2020 03:25:10 +0000 (03:25 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2077 from nextcloud/nullptr-everywhere-comparison
Michael Schuster [Wed, 10 Jun 2020 23:03:44 +0000 (01:03 +0200)]
Merge pull request #2077 from nextcloud/nullptr-everywhere-comparison

Simplify nullptr comparisons where appropriate

5 years agoSimplify nullptr comparisons where appropriate
Michael Schuster [Wed, 10 Jun 2020 01:47:49 +0000 (03:47 +0200)]
Simplify nullptr comparisons where appropriate

Make the codebase consistent, we already have a lot of implicit pointer comparisons.

Exception: Stay explicit on return's, example:
  return _db != nullptr;

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 10 Jun 2020 03:28:04 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

6 years agoFix nullptr regression in RegistryUtil::ReadRegistry
Michael Schuster [Tue, 9 Jun 2020 14:17:04 +0000 (16:17 +0200)]
Fix nullptr regression in RegistryUtil::ReadRegistry

Merging PR #2057 caused the Windows build to fail:

shell_integration\windows\OCUtil\RegistryUtil.cpp(43): error C2664: 'LSTATUS RegOpenKeyExW(HKEY,LPCWSTR,DWORD,REGSAM,PHKEY)': cannot convert argument 3 from 'nullptr' to 'DWORD'

The previous implementation prior the PR supplied NULL as the argument 3 to RegOpenKeyEx,
so it was silently accepted and translated to zero, satisfying the DWORD's type requirement.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoChange default autostart to hide gui
Rick van der Zwet [Thu, 4 Jun 2020 07:13:28 +0000 (09:13 +0200)]
Change default autostart to hide gui

Signed-off-by: Rick van der Zwet <info@rickvanderzwet.nl>
6 years agoMerge pull request #2058 from nextcloud/sbeyer-fix-nosync-crash
Kevin Ottens [Tue, 9 Jun 2020 16:33:54 +0000 (18:33 +0200)]
Merge pull request #2058 from nextcloud/sbeyer-fix-nosync-crash

Fix/improve use case without local folder

6 years agoReplace prefixing of paths with file:// by QUrl::fromLocalFile()
Stephan Beyer [Mon, 8 Jun 2020 22:29:42 +0000 (00:29 +0200)]
Replace prefixing of paths with file:// by QUrl::fromLocalFile()

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
6 years agoHide openLocalFolderButton if no local folder is configured
Stephan Beyer [Sat, 6 Jun 2020 19:08:48 +0000 (21:08 +0200)]
Hide openLocalFolderButton if no local folder is configured

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
6 years agoFix crash on opening unconfigured local folder
Stephan Beyer [Sat, 6 Jun 2020 16:04:36 +0000 (18:04 +0200)]
Fix crash on opening unconfigured local folder

When you try to open the local sync folder (by clicking on the
folder symbol) for an account that has no folder configured,
the client crashes.

This commit changes User::openLocalFolder() to do nothing in
case no local folder is configured.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
6 years agoChange width of app menu
Stephan Beyer [Sat, 6 Jun 2020 21:55:31 +0000 (23:55 +0200)]
Change width of app menu

The app menu had a width based on the header button size which was
way too narrow to display its content.

This commit changes the width based on the contents (menu items) of
the menu, however, limiting the maximum width to half the window width.

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

6 years agoReplace NULL by nullptr in all C++ files
Stephan Beyer [Thu, 4 Jun 2020 22:51:32 +0000 (00:51 +0200)]
Replace NULL by nullptr in all C++ files

We keep NULL in the pure C files in src/csync/std and test/csync.

We also replace Doxygen documentation referring to "NULL" to
"\c nullptr" (formatted as code).

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
6 years agoUse APPLICATION_ICON_NAME for autostart icon
Nicolas Fella [Sun, 7 Jun 2020 21:23:18 +0000 (23:23 +0200)]
Use APPLICATION_ICON_NAME for autostart icon

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
6 years agoDon't show a message box if the entered url returned an error
Roeland Jago Douma [Sat, 21 Mar 2020 09:08:09 +0000 (10:08 +0100)]
Don't show a message box if the entered url returned an error

BEtter to now just display clickable links etc.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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>