Commit graph

5820 commits

Author SHA1 Message Date
Elvis Angelaccio 3ee24ac287 [KItemListController] Make event-handling functions private
There is no reason why these event-handling custom functions should be
public, so make them private instead.
2018-12-02 14:42:41 +01:00
Elvis Angelaccio 6938a73fe5 [KItemListController] Drop virtual keywords
We are never overriding these functions, so there is no reason to declare
them virtual.
2018-12-02 14:08:55 +01:00
Elvis Angelaccio 7af0e23186 [KItemListController] Drop unused functions 2018-12-02 14:08:55 +01:00
Thomas Surrel e62ae08d30 Merge remote-tracking branch 'origin/Applications/18.12' 2018-12-01 21:20:01 +01:00
Thomas Surrel 6100f66ae2 Fix selection when navigating back, with size sorting.
Summary:
KItemListSelectionManager::itemsMoved (called when sorting by size)
was re-activating anchor selection regardless if we actually were
doing an anchored selection. This was leading to an incorrect
selection when navigating back.

BUG: 352296

Test Plan:
In any folder, sort by size then move to a subfolder. Navigate back
to the parent folder: only the parent folder should be selected.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17042
2018-12-01 21:18:58 +01:00
Thomas Surrel b714604a67 Do not sort twice when changing role and order at the same time
Summary:
When using the list header to change the role and order, if one
changes the order to descending and then changes role, dolphin
also changes the order back to ascending. This results in sorting
the list of files twice in a row. This patch removes the first
(useless) sort.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17111
2018-12-01 21:07:29 +01:00
Laurent Montel d0cfe1e658 Use isEmpty here too 2018-11-30 07:13:53 +01:00
Laurent Montel f390818050 Use isEmpty() here 2018-11-30 06:58:22 +01:00
l10n daemon script 60e5c1bd8e GIT_SILENT made messages (after extraction) 2018-11-29 07:07:18 +01:00
l10n daemon script 84f4b1fe07 GIT_SILENT made messages (after extraction) 2018-11-29 02:46:54 +01:00
Christoph Feck 396a69859b GIT_SILENT Upgrade KDE Applications version to 18.11.90. 2018-11-26 14:32:36 +01:00
Elvis Angelaccio b5df5f4d95 [PlacesPanel] Port to KFilePlaceEditDialog
Summary:
This patch ports away from the old PlacesItemEditDialog copy,
which doesn't honour the "applicationLocal" checkbox.

KFilePlaceEditDialog was not exported by KIO, but it will be starting
from 5.53

BUG: 376619
FIXED-IN: 19.03.80

Test Plan:
* Create a new place ("Add Entry" from the panel context menu) and check the "only show in dolphin" checkbox
* Edit an existing (global) place and check the "only show in dolphin" checkbox

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D16824
2018-11-24 12:18:01 +01:00
Laurent Montel 2a96387f76 Avoid warning when translatedtext is null 2018-11-21 09:01:01 +01:00
l10n daemon script fa5f13af6c GIT_SILENT made messages (after extraction) 2018-11-21 07:17:05 +01:00
l10n daemon script cea66c1b96 GIT_SILENT made messages (after extraction) 2018-11-21 02:51:03 +01:00
l10n daemon script 20311c0a1e GIT_SILENT made messages (after extraction) 2018-11-20 07:09:58 +01:00
l10n daemon script 907f4390d5 GIT_SILENT made messages (after extraction) 2018-11-20 02:49:53 +01:00
Thomas Surrel 1340e98548 Show the Delete context menu entry even when disabled
Summary:
This is consistent with the HIG, and the 'Rename' entry in
the context menu already behaves like that.

Test Plan:
Right click on /home. The context menu should contained
the 'Delete' entry, but it should be disabled.

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, romangg, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17012
2018-11-19 16:12:03 +01:00
Thomas Surrel 1f162f181c Merge remote-tracking branch 'origin/Applications/18.12' 2018-11-17 14:44:02 +01:00
Thomas Surrel e710a64311 Do not disconnect all StorageAccess signals when unmounting
Summary:
The problem is caused by the fact device interfaces returned by
Solid (e.g. item->device().as<Solid::StorageAccess>()) are not
full objects, but only references/pointers to a per-device-object,
i.e. requesting the same interface for a device will return the same
address every time.

If the interface is used used in multiple places, calling disconnect
on the interface address disconnects the signals for all users.

BUG: 400992

Test Plan:
In Dolphin, mount a local partition (e.g. a Windows partition)
then unmount it (right click on it in Places, then Unmount).
Try to access it again by clicking on it in Places, we should
get access to it correctly.

Reviewers: #dolphin, #frameworks, bruns, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D16857
2018-11-17 14:43:41 +01:00
Chris Rizzitello 76c4698870 Merge remote-tracking branch 'origin/Applications/18.12' 2018-11-17 08:39:38 -05:00
Chris Rizzitello c900f7d255 Improve Ux for the places panel's hidden items
Summary:
BUG: 400860
FIXED-IN: 18.12.0

Clean up the context menu for the places panel.
 - Change Text "Show All Entries" -> "Show Hidden Places"
 - Use State dependent icon (like hidden files)
 - Disable instead of hide if not places are hidden.
 - Toggle to unchecked if last item of group is unhidden.

Create a copy of this "Show Hidden Places" entry in the main dolphin menu View->Places.

Test Plan:
With Hidden Places
{F6398756}
{F6398759}
Context Menu:
{F6398762}
{F6398761}

Without Hidden Places.
{F6414694}
{F6414696}

Reviewers: #dolphin, #vdg, elvisangelaccio, ngraham

Reviewed By: #dolphin, #vdg, elvisangelaccio, ngraham

Subscribers: cfeck, elvisangelaccio, veqz, davidc, ngraham, kfm-devel

Tags: #dolphin

Maniphest Tasks: T8349

Differential Revision: https://phabricator.kde.org/D16767
2018-11-17 08:38:39 -05:00
Harald Sitter 06747d5e5b Merge branch 'Applications/18.12' 2018-11-17 12:25:21 +01:00
Harald Sitter a4cddf7517 move kcrash link to dolphin app (which is the effective user)
Summary:
to successfully use kcrash when linking with as-needed (which is a default
flag on many linux distros) one also needs to call KCrash::initialize.
this call happens in the app's main.cpp. as such the kcrash link target
on the dolphinprivate library doesn't do anything for dolphinprivate but
only kicks into action for dolphin itself.
to avoid confusion and make it clear that kcrash is only initialized in the
application scope the KF5::Crash link target is now on the application
target, not the library target.

(this makes no difference in the output, kcrash was still correctly linked
 via dolphinprivate; but only for kdeinit_dolphin, dolphinprivate did
 not get linked to it with as-needed)

Test Plan: builds; links as expected

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D16896
2018-11-17 12:25:15 +01:00
l10n daemon script cee7266e10 GIT_SILENT made messages (after extraction) 2018-11-16 06:50:05 +01:00
l10n daemon script 9c3e7657f2 GIT_SILENT made messages (after extraction) 2018-11-16 03:37:49 +01:00
l10n daemon script 81233cbb0c GIT_SILENT made messages (after extraction) 2018-11-14 03:45:20 +01:00
l10n daemon script c3f1e35795 GIT_SILENT made messages (after extraction) 2018-11-13 03:48:54 +01:00
Elvis Angelaccio 20e11282b5 [PlacesItem] Add support for OnlyInApp metadata for bookmarks
This will allow to edit an existing place to make it application-local
or visible from all applications.

CCBUG: 376619
2018-11-11 19:02:54 +01:00
Elvis Angelaccio 140ccf1df8 [PlacesItemModel] Match KFilePlacesModel addPlaces() API
This will allow to create a place visible only from Dolphin, by passing
an `appName` to the KFilePlacesModel.

CCBUG: 376619
2018-11-11 19:02:54 +01:00
Elvis Angelaccio e3eba9ea66 Merge branch 'Applications/18.12' 2018-11-11 19:02:34 +01:00
Elvis Angelaccio 23350914f6 Update copyright year in KAboutData
GIT_SILENT
2018-11-11 19:00:24 +01:00
Albert Astals Cid 27179cd275 GIT_SILENT Upgrade KDE Applications version to 19.03.70. 2018-11-10 08:37:42 +01:00
Albert Astals Cid cbf1b5bc0c GIT_SILENT Upgrade KDE Applications version to 18.03.70. 2018-11-09 23:35:44 +01:00
Albert Astals Cid a8b04802b3 GIT_SILENT Upgrade KDE Applications version to 18.11.80. 2018-11-09 23:17:57 +01:00
Shubham Jangra b08cea86c9 Warn user before renaming the file/folder to start with a ' . '
Summary: For normal "casual" linux users, renaming the file/folder starting with dot may get irritating, they will be wondering their file is deleted.

Test Plan:
1. Make new file/folder.
2. Rename it to .foo
3. Question dialog appears.

Reviewers: elvisangelaccio, ngraham, pino

Reviewed By: elvisangelaccio, ngraham

Subscribers: cfeck, emateli, elvisangelaccio, pino, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D15980
2018-11-08 14:18:59 +05:30
Albert Astals Cid 159eb6b4a6 Add donation url to appdata 2018-11-08 00:12:53 +01:00
l10n daemon script adad714ba5 GIT_SILENT made messages (after extraction) 2018-11-05 03:32:41 +01:00
Elvis Angelaccio e87771abec Update maintainership in KAboutData
As discussed on kfm-devel and agreed upon with Emmanuel.
2018-11-04 21:21:19 +01:00
l10n daemon script 89535ac82b GIT_SILENT made messages (after extraction) 2018-11-04 03:42:18 +01:00
Laurent Montel 7c9db51c1d Autogenerate debug file + install debug categories file 2018-11-02 13:23:10 +01:00
l10n daemon script 7cd22e7a88 GIT_SILENT made messages (after extraction) 2018-11-01 03:38:41 +01:00
l10n daemon script 3221a20ef7 GIT_SILENT made messages (after extraction) 2018-10-28 02:32:13 +01:00
Elvis Angelaccio f7c2bd3410 Merge branch 'Applications/18.08' 2018-10-27 18:04:05 +02:00
Elvis Angelaccio e26ee6455e Don't enable two-clicks renaming in single-click mode
Summary:
This was supposed to be part of commit 5454283008, but apparently we
didn't notice it was missing.

Test Plan:
- Enable single-click mode from system settings
- Select a file in dolphin
- Long-click the selected file and make sure inline renaming doesn't start

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D16460
2018-10-27 16:58:33 +02:00
Fabian Vogt e13ffcb1a7 Adjust label in the settings page for changed preview behaviour
Summary: Requested by https://phabricator.kde.org/D15138#318904

Test Plan: Opened the preview settings, label text changed.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: ngraham, markg, broulik, kfm-devel, elvisangelaccio

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D15216
2018-10-27 16:45:36 +02:00
Alexander Saoutkin ac118ae1c2 Close Dolphin if last tab closed
Summary:
Allows closing of last tab via shortcut or menubar (File->Close Tab), which then results in closing dolphin.

FEATURE: 397101

Test Plan: [Manual] Check closing tab closes dolphin via shortcut and menubar.

Reviewers: #dolphin, ngraham, #vdg, elvisangelaccio

Reviewed By: #dolphin, ngraham, #vdg, elvisangelaccio

Subscribers: thsurrel, svenmauch, abetts, elvisangelaccio, ngraham, #dolphin, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D15278
2018-10-27 11:24:49 +02:00
l10n daemon script 2278d9ed75 GIT_SILENT made messages (after extraction) 2018-10-27 03:38:41 +02:00
Yuri Chornoivan 09c6a4efd3 Add caption to the screenshot 2018-10-25 21:28:41 +03:00
Yuri Chornoivan fd1a078cc4 Fix minor typos 2018-10-25 21:23:44 +03:00