nextcloud-desktop.git
5 years agoDarken menu border color
Stephan Beyer [Fri, 19 Jun 2020 20:38:34 +0000 (22:38 +0200)]
Darken menu border color

The lightgray menu border color #ededed introduced in
commit f147e5a66f43657805542904b43e0b4e662ffe04 (by PR #2095)
is way too light for my display (and probably others).
Thus the menus have no clear border which looks odd and broken.

This commit simply darkens the menu border to #bdbdbd, which
coincides with the (current default) color of the menu separator.

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

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 20 Jun 2020 03:26:41 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2106 from nextcloud/fix/proxy-build-libsync
Michael Schuster [Thu, 18 Jun 2020 19:24:25 +0000 (21:24 +0200)]
Merge pull request #2106 from nextcloud/fix/proxy-build-libsync

Fix libsync exports for proxy changes in #1886

5 years agoFix libsync exports for proxy changes in #1886
Michael Schuster [Thu, 18 Jun 2020 19:05:11 +0000 (21:05 +0200)]
Fix libsync exports for proxy changes in #1886

Build failed on Windows, missing libsync export for printQNetworkProxy after
moving ClientProxy class from gui to libsync.

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoMerge pull request #1886 from nextcloud/enh/proxy
Michael Schuster [Thu, 18 Jun 2020 18:38:27 +0000 (20:38 +0200)]
Merge pull request #1886 from nextcloud/enh/proxy

Move the proxyfiles to libsync where they make more sense

5 years agoImprove proxy logging: Log type string instead of abstract ID
Michael Schuster [Thu, 18 Jun 2020 18:13:57 +0000 (20:13 +0200)]
Improve proxy logging: Log type string instead of abstract ID

The format in the client log was: 3://host:port
Now it is shown like:             HttpProxy://host:port

The old ID display was confusing and misleading users (and people debugging it ;p)

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoMove the proxyfiles to libsync where they make more sense
Roeland Jago Douma [Sat, 21 Mar 2020 10:25:34 +0000 (11:25 +0100)]
Move the proxyfiles to libsync where they make more sense

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 18 Jun 2020 03:26:43 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2093 from nicrame/patch-1
Michael Schuster [Wed, 17 Jun 2020 23:36:00 +0000 (01:36 +0200)]
Merge pull request #2093 from nicrame/patch-1

Add photothumb.db to sync-exclude.lst

5 years agoMerge branch 'master' into patch-1
Michael Schuster [Wed, 17 Jun 2020 22:44:52 +0000 (00:44 +0200)]
Merge branch 'master' into patch-1

5 years agoMerge pull request #2099 from nextcloud/ease_access_to_main_dialog
Kevin Ottens [Wed, 17 Jun 2020 17:25:37 +0000 (19:25 +0200)]
Merge pull request #2099 from nextcloud/ease_access_to_main_dialog

Ease access to main dialog

5 years agoBring forward the main systray dialog on second execution
Kevin Ottens [Tue, 16 Jun 2020 16:59:16 +0000 (18:59 +0200)]
Bring forward the main systray dialog on second execution

Previously we were showing up the settings dialog but it doesn't quite
make sense anymore now that we got two dialogs.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoAlso show the window on right click
Kevin Ottens [Tue, 16 Jun 2020 16:32:53 +0000 (18:32 +0200)]
Also show the window on right click

Note this won't work on all platforms. KDE Plasma and GNOME Shell (with
systray extension) assume that right click is necessarily for a context
menu exposed via D-Bus, there's not nice way to make the right click
popup the main dialog on those platforms.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMerge branch 'master' into patch-1
Michael Schuster [Wed, 17 Jun 2020 15:35:07 +0000 (17:35 +0200)]
Merge branch 'master' into patch-1

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 17 Jun 2020 03:24:38 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

5 years agoDon't call method on potentially null object
Kevin Ottens [Mon, 15 Jun 2020 18:20:40 +0000 (20:20 +0200)]
Don't call method on potentially null object

We were calling accountState() on a "folder" member which could be
nullptr. In fact this would happen any time one right click on a file
outside of a sync dir under Windows, this thus led to a crash.

Since the capabilities variable was unused anyway, we just removed it.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMake activity items with a link clickable
Kevin Ottens [Mon, 15 Jun 2020 17:08:16 +0000 (19:08 +0200)]
Make activity items with a link clickable

We then get more items clickable, in particular the bottom one proposing
to open the activity application. Now we can click it and it opens the
activity application straight away.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDon't use a bright blue color for menus
Kevin Ottens [Mon, 15 Jun 2020 17:06:59 +0000 (19:06 +0200)]
Don't use a bright blue color for menus

As advised, use a light gray instead, this electric blue was a bit too
much.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDon't use a weirdly truncated icon size for header buttons
Kevin Ottens [Mon, 15 Jun 2020 17:05:21 +0000 (19:05 +0200)]
Don't use a weirdly truncated icon size for header buttons

This led to blurry icons. Now use a fixed size of 32 which also makes
them a bit more pleasing... at least to me. ;-)

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDon't duplicate file name in the info line
Kevin Ottens [Mon, 15 Jun 2020 17:02:27 +0000 (19:02 +0200)]
Don't duplicate file name in the info line

For the "Activity" type activities, displayPath contains the file name
which is also in the subject. This was redundant, so now we don't
display an info line at all for that type of activities.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoClose all menus on window show
Kevin Ottens [Mon, 15 Jun 2020 17:01:04 +0000 (19:01 +0200)]
Close all menus on window show

We previously missed the app menu which wasn't closed.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
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 agoAdd photothumb.db to sync-exclude.lst
Marcin Wilk [Sun, 14 Jun 2020 18:24:10 +0000 (20:24 +0200)]
Add photothumb.db to sync-exclude.lst

Add photothumb.db file that is thumbnails generated by Photoscape application (generated in every folder with graphic files).

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>