]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
6 years agoSync docs with interface
Yuri Chornoivan [Sun, 15 Sep 2019 05:25:21 +0000 (08:25 +0300)]
Sync docs with interface

6 years agoImprove icons and text for some actions
Nate Graham [Sat, 14 Sep 2019 14:40:06 +0000 (08:40 -0600)]
Improve icons and text for some actions

Summary: Split out from D23757

Reviewers: #dolphin, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23945

6 years agoFix unused variable warning
Elvis Angelaccio [Sat, 14 Sep 2019 14:10:07 +0000 (16:10 +0200)]
Fix unused variable warning

Should have been removed by 60d6a3bdbcd44360e1c6ae1c82239ecf6d60ded7

GIT_SILENT

6 years agoThis is not unused
Ismael Asensio [Sat, 14 Sep 2019 13:31:45 +0000 (15:31 +0200)]
This is not unused

GIT_SILENT

6 years agoDolphinTabWidget: cleanup index-by-URL API usage
Elvis Angelaccio [Tue, 10 Sep 2019 23:09:30 +0000 (01:09 +0200)]
DolphinTabWidget: cleanup index-by-URL API usage

Summary:
Follow-up of D23655 where we didn't have time to polish the code:

- add a couple of variables to make the code more clear.
- remove the `get` prefix which we usually don't use in Qt code.
- make the function private since it's very tied to implementation.
- add a new isUrlOpen public method as wrapper.

Reviewers: feverfew

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23860

6 years agoWe depend against 5.61 which depends against qt 5.11
Laurent Montel [Sat, 14 Sep 2019 07:41:37 +0000 (09:41 +0200)]
We depend against 5.61 which depends against qt 5.11

6 years agoUse directly "isEmpty()"
Laurent Montel [Sat, 14 Sep 2019 07:40:09 +0000 (09:40 +0200)]
Use directly "isEmpty()"

6 years agoAdd Reset Zoom Level action inside View menu
Nate Graham [Sun, 1 Sep 2019 15:29:00 +0000 (09:29 -0600)]
Add Reset Zoom Level action inside View menu

Summary:
FEATURE: 409591
FIXED-IN: 19.12.0

Test Plan: {F7096397}

Reviewers: elvisangelaccio, shubham, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: broulik, cfeck, kfm-devel, kde-doc-english

Tags: #dolphin, #documentation

Differential Revision: https://phabricator.kde.org/D22444

6 years agoMerge branch 'Applications/19.08'
Nate Graham [Mon, 9 Sep 2019 13:17:40 +0000 (07:17 -0600)]
Merge branch 'Applications/19.08'

6 years agoFix ascending/descending choosers getting unchecked when re-selecting the same sort...
Nate Graham [Sat, 24 Aug 2019 20:33:00 +0000 (14:33 -0600)]
Fix ascending/descending choosers getting unchecked when re-selecting the same sort order

Summary:
When you select the same sort order that's already selected, the currently-checked
sort order description (the human-readable ascending/descending items) gets unchecked
in `slotSortTriggered()` yet the ascending/descending items items only get checked in
`slotSortOrderChanged()`. Because the order hasn't gotten changed, neither one gets
checked again.

This patch fixes the problem by not unchecking them in the first place.

BUG: 411223
FIXED-IN: 19.08.2

Test Plan:
1. Right-click > Sort By > Click the currently-selected sort order
2. Right-click > Sort By > See that the item for the current ascending/descending setting has not been changed

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: broulik, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23412

6 years agoGIT_SILENT: minor qstring optimization
Laurent Montel [Sun, 8 Sep 2019 07:33:41 +0000 (09:33 +0200)]
GIT_SILENT: minor qstring optimization

6 years agoUse large colorful category icons in Dolphin settings
Björn Feber [Fri, 6 Sep 2019 12:09:02 +0000 (14:09 +0200)]
Use large colorful category icons in Dolphin settings

Summary:
{F7324074}
Ref task T10165
Depends on D23749

Test Plan: Open the Dolphin settings dialog.

Reviewers: #dolphin, #vdg, ndavis, ngraham

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

Subscribers: ngraham, ndavis, kfm-devel, #vdg, #dolphin

Tags: #dolphin

Maniphest Tasks: T10165

Differential Revision: https://phabricator.kde.org/D23750

6 years agoChange terminal panel icon to dialog-scripts
Noah Davis [Thu, 5 Sep 2019 15:30:06 +0000 (11:30 -0400)]
Change terminal panel icon to dialog-scripts

Summary: The old icon was a color icon, which does not match the style of other toolbar/menu buttons

Test Plan: {F7321334, size=full}{F7321319}

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23740

6 years agoUse better-named visible and hidden icons
Nate Graham [Wed, 4 Sep 2019 15:04:13 +0000 (09:04 -0600)]
Use better-named visible and hidden icons

6 years agoUnbreak context menu showing when right clicking on an empty area
Luca Beltrame [Wed, 4 Sep 2019 09:36:42 +0000 (11:36 +0200)]
Unbreak context menu showing when right clicking on an empty area

In D22149, a request was made to remove a variable assignment ("action",
on line 389 in src/dolphincontextmenu.cpp. However the change went too
far, and it actually removed the exec() call, not just the assignment
which should have stayed.

This resulted in the context menu not being shown at all.

Adding back exec(m_pos) at least allows for the context menu to show.

CCMAIL: nate@kde.org

6 years agoMerge branch 'Applications/19.08'
Elvis Angelaccio [Mon, 2 Sep 2019 21:18:33 +0000 (23:18 +0200)]
Merge branch 'Applications/19.08'

6 years agoFixing bugs in new folders in tabs feature
Alexander Saoutkin [Mon, 2 Sep 2019 21:15:08 +0000 (23:15 +0200)]
Fixing bugs in new folders in tabs feature

Summary:
Fixing bug where urls in secondary view containers would not be considered
for the open new folders in tabs feature.

Test Plan: Manual testing. Testing for no regressions. Testing that URL is found if in secondary view container

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: kfm-devel, ngraham

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23655

6 years agoMaking sure that DBus objects are all created before the service
Alexander Saoutkin [Mon, 2 Sep 2019 21:13:52 +0000 (23:13 +0200)]
Making sure that DBus objects are all created before the service

Summary:
Currently the DBus service is created before the MainWindow DBus object is
created. This can cause hangs if another service makes calls to a a method
in an object that's not been initialised, when the service is already published.
This patch defers the creation of the service until all DBus objects are
created.

Test Plan:
Tested in KDevelop. Have "open new folders in tabs" feature enabled.
Open several folders with Dolphin at once. Before this patch
there would be noticeable hanging. With this patch all tabs instantly open with
no hanging.

Reviewers: elvisangelaccio, ngraham

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23672

6 years agoFix places text when the URL has a trailing slash
Elvis Angelaccio [Sun, 1 Sep 2019 20:32:35 +0000 (22:32 +0200)]
Fix places text when the URL has a trailing slash

Summary: QUrl::fileName() returns an empty string if the URL ends with a slash.

Test Plan:
1. Run `dolphin /tmp` from command line
2. Right-click from viewport and click 'Add to Places'

Reviewers: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23654

6 years ago[Tab Bar] Resolve tab icon only if visible
Kai Uwe Broulik [Mon, 2 Sep 2019 07:13:56 +0000 (09:13 +0200)]
[Tab Bar] Resolve tab icon only if visible

Calling KIO::iconNameForUrl will determine mime type of the file potentially blocking.
Don't needless do it when the tab bar isn't visible.

Differential Revision: https://phabricator.kde.org/D23295

6 years agoMerge branch 'Applications/19.08'
Kai Uwe Broulik [Mon, 2 Sep 2019 07:13:29 +0000 (09:13 +0200)]
Merge branch 'Applications/19.08'

6 years agoReset progress bar text when directory loading starts
Kai Uwe Broulik [Mon, 2 Sep 2019 07:12:48 +0000 (09:12 +0200)]
Reset progress bar text when directory loading starts

Dolphin shows a different text for whether it is loading the directory or currently sorting its contents.
However, when entering a folder that causes sort criteria to change (e.g. because of different view properties in that folder),
the status bar text is changed to "Sorting..." while it is still actually loading the folder.
When loading a directory starts, reset any status bar text to ensure "Loading..." is displayed in this case.

Differential Revision: >https://phabricator.kde.org/D23459

6 years agoReplace the stop button of the media preview by a pause button
Méven Car [Mon, 2 Sep 2019 05:00:13 +0000 (07:00 +0200)]
Replace the stop button of the media preview by a pause button

Summary:
Stop is not as useful as paused plus it makes the button coherent with the click to play/pause feature.

CCBUG: 364957

Test Plan: {F7305382}

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23648

6 years agoAdd missing space
Yuri Chornoivan [Mon, 2 Sep 2019 04:23:53 +0000 (07:23 +0300)]
Add missing space

6 years agoAdd "Add to Places" action to file menu
Nate Graham [Sun, 1 Sep 2019 21:01:57 +0000 (15:01 -0600)]
Add "Add to Places" action to file menu

Summary:
It's recommended that actions available in context menus be available in the main menu
as well for discoverability's sake. This patch does so for the "Add to Places" action.

The action is moved over to the main window, and accessed in the context menu via the
actionCollection it lives in.

BUG: 390757
FIXED-IN: 19.08.0

Test Plan:
- Action still works
- Action still appears in context menu when relevant
- Action in the File menu only becomes enabled when only a single directory is selected or nothing is selected

{F7143876}

{F7143877}

{F7143878}

{F7143879}

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22149

6 years ago[dolphin] Add an action to toggle the searchbar
Ismael Asensio [Sun, 1 Sep 2019 19:59:43 +0000 (21:59 +0200)]
[dolphin] Add an action to toggle the searchbar

Summary:
Make search action toggle the searchbar instead of just launching it.

The search action in dolphin did only bring up the search bar, but to close it again you had to go to the closing button on the same searchbar.
This behavior in inconsistent with other dolphin actions which toggle panels or tools.

BEFORE:
{F7256652}

AFTER:
{F7256862}

BUG: 344617
FIXED-IN: 19.12.0
Closes T8473

Depends on D23075

Test Plan:
- Enable the search mode: the searchbar appears and the toolbar button gets checked
- Press the search button again, and it goes back to normal mode.
- The search button state is coherent with the searchbox
- Coherence is kept when changing to a split view or different tab
- Shorcut <Ctrl-F> does not close the searchbar, but moves the focus to it.

Reviewers: #dolphin, ngraham, #vdg, elvisangelaccio

Reviewed By: ngraham, #vdg

Subscribers: ndavis, felixernst, elvisangelaccio, kfm-devel

Tags: #dolphin

Maniphest Tasks: T8473

Differential Revision: https://phabricator.kde.org/D23232

6 years agoMake non-empty textual columns come first in sorting
Nazar Kalinowski [Sun, 1 Sep 2019 15:48:32 +0000 (17:48 +0200)]
Make non-empty textual columns come first in sorting

Summary:

Current behavior of dolphin in sorting of files with textual columns (e.g. tags) is to show files without this particular textual column (e.g. without tags) first.
This patch changes this behavior so that dolphin shows the files with some value before the files without any value for chosen sorting method.

BUG: 410538

Test Plan:
Sorting by name (isn't affected by the patch): https://i.imgur.com/eqbYwyZ.png
Sorting by textual column ("tags" in this particular example),
old version (non-tagged files and folders come first): https://i.imgur.com/5KLLujU.png
patched version (tagged files and folders come first): https://i.imgur.com/oUAeZ2z.png

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23482

6 years agoAdd click to play/pause feature on previews for audio/video
Méven Car [Tue, 27 Aug 2019 11:04:56 +0000 (13:04 +0200)]
Add click to play/pause feature on previews for audio/video

Test Plan:
In dolphin, click on a video or audio preview in the information panel.
The video or audio preview starts

Reviewers: elvisangelaccio, #dolphin, ngraham

Reviewed By: elvisangelaccio, #dolphin, ngraham

Subscribers: alexde, anthonyfieroni, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22183

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.08.1.
Christoph Feck [Sun, 1 Sep 2019 03:28:07 +0000 (05:28 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.08.1.

6 years agoDon't store view properties on network shares
Kai Uwe Broulik [Wed, 28 Aug 2019 07:46:58 +0000 (09:46 +0200)]
Don't store view properties on network shares

Entering a folder will have Dolphin determine whether it can store the view properties in a .directory file within the folder or
in a generic config location.
It does so by checking for permissions on the file and parent dir causing various stat calls that potentially block on a slow mount.
Also, the config reading thereafter can be very slow.
Moreover, network shares are typically shared between users, so one user's view properties shouldn't affect or be overwritten
by this Dolphin instance.
It doesn't resolve symlinks but is surely an improvement over the status quo.

Differential Revision: https://phabricator.kde.org/D23458

6 years agoAlways periodically dispatch pending items
Kai Uwe Broulik [Tue, 27 Aug 2019 11:26:26 +0000 (13:26 +0200)]
Always periodically dispatch pending items

"Local" URLs can also be slow.
This might jeopardize loading large local directories where a resorting could take place but imho it's better than leaving the user
wondering when files will finally show up. However, it takes some time for KDirLister to initially signal items having been added,
and only then our 2 second timer starts.
Also, stop the timer when loading has completed.

Differential Revision: https://phabricator.kde.org/D23460

6 years agoMerge branch 'Applications/19.08'
Nate Graham [Sun, 25 Aug 2019 16:36:26 +0000 (10:36 -0600)]
Merge branch 'Applications/19.08'

6 years agoFixing bug where split view opens with no URLs
Alexander Saoutkin [Sun, 25 Aug 2019 16:26:39 +0000 (10:26 -0600)]
Fixing bug where split view opens with no URLs

Summary:
BUG: 411193
FIXED-IN: 19.08.1

Test Plan:
Reproduce steps as given in bug report. Observe the exected result.
Used qdbusviewer and ShowFolders method to observe that no regressions occured
in the "open new folders in tabs" feature.

Reviewers: elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23445

6 years agoChange default Dolphin toolbar layout
Simon Krull [Sun, 25 Aug 2019 15:32:49 +0000 (09:32 -0600)]
Change default Dolphin toolbar layout

Summary:
{F7205836}

Use a default toolbar layout that looks better and makes more sense for new users.

Test Plan: Open Dolphin (with the default toolbar)

Reviewers: #dolphin, #vdg, ngraham, GB_2, elvisangelaccio

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

Subscribers: iasensio, filipf, meven, elvisangelaccio, felixernst, GB_2, ndavis, ngraham, kfm-devel, #vdg, #dolphin

Tags: #dolphin, #vdg

Differential Revision: https://phabricator.kde.org/D23075

6 years agoMiddle-elide file/folder labels so the extension is always visible
Nate Graham [Sat, 2 Mar 2019 13:00:34 +0000 (06:00 -0700)]
Middle-elide file/folder labels so the extension is always visible

Summary:
This ensures that the filename extension is always visible, and also is just a
nicer way to elide file and folder names in general.

BUG: 404955
FIXED-IN: 19.12.0

Test Plan:
Details view: {F6648784}
Icons view with limited label height: {F6648785}

Reviewers: #dolphin, #vdg, elvisangelaccio, GB_2

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

Subscribers: GB_2, ndavis, rooty, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19471

6 years agoCorrect "New Window" tooltip
Nate Graham [Sat, 24 Aug 2019 14:16:42 +0000 (08:16 -0600)]
Correct "New Window" tooltip
BUG: 411215
FIXED-IN: 19.12.0

6 years agoExclude build* repository
Laurent Montel [Fri, 23 Aug 2019 06:09:50 +0000 (08:09 +0200)]
Exclude build* repository

6 years agoFix a typo
Nazar Kalinowski [Mon, 19 Aug 2019 15:53:50 +0000 (09:53 -0600)]
Fix a typo

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23264

6 years agoCorrect translation context for zoom out action's what's this text
Nate Graham [Wed, 14 Aug 2019 18:04:56 +0000 (12:04 -0600)]
Correct translation context for zoom out action's what's this text

6 years agoRemove redundant code
Antonio Prcela [Tue, 13 Aug 2019 21:22:05 +0000 (23:22 +0200)]
Remove redundant code

Summary: Remove redundant negation and the AND check. OR is enough.

Reviewers: meven, elvisangelaccio

Reviewed By: meven, elvisangelaccio

Subscribers: elvisangelaccio, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23129

6 years agoMatch style of if() condition used above
Elvis Angelaccio [Sun, 11 Aug 2019 14:05:42 +0000 (16:05 +0200)]
Match style of if() condition used above

To be consistent with aeba47648d8b4b43ad0f8e237cfc95b8a4bd60ac.

6 years agoMerge branch 'Applications/19.08'
Elvis Angelaccio [Sun, 11 Aug 2019 14:01:41 +0000 (16:01 +0200)]
Merge branch 'Applications/19.08'

6 years agoFix an issue with focus lost after closing terminal panel
Andrey Yashkin [Sun, 11 Aug 2019 11:11:37 +0000 (13:11 +0200)]
Fix an issue with focus lost after closing terminal panel

Summary:
After leaving terminal with Ctrl-D or exit commands the input focus isn't set back to the folder view.
The problem appears, because `TerminalPanel::isHiddenInVisibleWindow` returns not what it supposed to return,
since when the terminal process exits, `m_terminal` is set to nullptr.

I moved unwanted checks from it inside `TerminalPanel::dockVisibilityChanged`

This change also exposes a crash in `DolphinMainWindow::slotTerminalPanelVisibilityChanged()`,
which was previously working only by luck.
Now we check whether `m_activeViewContainer` is not null before using it.

BUG: 407979
FIXED-IN: 19.11.80

Test Plan:
1. Open Dolphin
2. Press F4 to open the terminal panel
3. Type exit<Enter> or press Ctrl-D
4. Check current focus widget

Reviewers: #dolphin

Subscribers: ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22420

6 years agoMove variables closer to their usage
Elvis Angelaccio [Sun, 11 Aug 2019 10:37:51 +0000 (12:37 +0200)]
Move variables closer to their usage

GIT_SILENT

6 years agoCoding style fixes
Elvis Angelaccio [Sun, 11 Aug 2019 10:35:08 +0000 (12:35 +0200)]
Coding style fixes

GIT_SILENT

6 years agoDo not match daemonized dolphin instances: part 2
Elvis Angelaccio [Sun, 11 Aug 2019 10:10:43 +0000 (12:10 +0200)]
Do not match daemonized dolphin instances: part 2

Summary:
`dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path,
because it doesn't have any DolphinMainWindow.

Checking if the QDBusInterface is valid is not enough, we also need to look for dbus errors.

This should have been part of commit 7df5fc8edb54153f. Not sure how I missed it.

BUG: 408244
FIXED-IN: 19.08.0

Test Plan:
1. Make sure the new "Open new folders in tabs" setting is enabled.
2. Run `dolphin --deamon` and make sure is the only dolphin process around.
3. Call the `org.freedesktop.FileManager1.ShowFolders` method from QDbusViewer.

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23087

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.08.0.
Christoph Feck [Thu, 8 Aug 2019 23:59:49 +0000 (01:59 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.08.0.

6 years agoMerge branch 'Applications/19.08'
Wolfgang Bauer [Wed, 7 Aug 2019 16:11:51 +0000 (18:11 +0200)]
Merge branch 'Applications/19.08'

6 years agoFix build with cmake < 3.7
Wolfgang Bauer [Wed, 7 Aug 2019 16:08:57 +0000 (18:08 +0200)]
Fix build with cmake < 3.7

`VERSION_GREATER_EQUAL` was introduced in cmake 3.7, but the specified
minimum version is 3.0.
So use `NOT VERSION_LESS` instead to still support older cmake versions
too.

Differential Revision: https://phabricator.kde.org/D22984

6 years ago[Dolphin] Hide tooltip instantly on key press
Piotr Henryk Dabrowski [Sat, 3 Aug 2019 13:28:35 +0000 (15:28 +0200)]
[Dolphin] Hide tooltip instantly on key press

Summary:
Instantly hide tooltip shown over an element when a key is pressed.

Currently, when pressing an alphanum key to select a different file,
the tooltip continues to cover much of the window - often hiding that newly selected file from view.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: broulik, elvisangelaccio, kfm-devel, pdabrowski

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22512

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 31 Jul 2019 06:56:25 +0000 (08:56 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 31 Jul 2019 05:41:55 +0000 (07:41 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 31 Jul 2019 03:06:34 +0000 (05:06 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 31 Jul 2019 00:26:09 +0000 (02:26 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.07.90.
Christoph Feck [Mon, 29 Jul 2019 13:44:58 +0000 (15:44 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.07.90.

6 years agoFix minor typo (thanks to Iñigo Salvador Azurmendi)
Yuri Chornoivan [Mon, 29 Jul 2019 07:13:04 +0000 (10:13 +0300)]
Fix minor typo (thanks to Iñigo Salvador Azurmendi)

6 years agoFix name grouping feature for cyrillic names
Andrey Yashkin [Sun, 28 Jul 2019 20:12:14 +0000 (22:12 +0200)]
Fix name grouping feature for cyrillic names

Summary:
All files and folders with cyrillic names are placed in latin 'A' group. This patch fixes this issue.

CCBUG: 406867

Test Plan:
Make grouping by name in the dir with cyrillic files or dirs in it.
See screenshots below.
Before {F6985465}
After {F6985459}

Reviewers: #dolphin, ngraham, cfeck, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: hein, cfeck, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22303

6 years agoRevert "Fix name grouping feature for cyrillic names"
Elvis Angelaccio [Sun, 28 Jul 2019 20:11:51 +0000 (22:11 +0200)]
Revert "Fix name grouping feature for cyrillic names"

This reverts commit dc586ada63d1822fbbe38a0dd3449c73b03928e0.

D22303 had a wrong diff.

CCBUG: 406867

6 years agoMerge branch 'Applications/19.08'
Elvis Angelaccio [Sun, 28 Jul 2019 16:31:46 +0000 (18:31 +0200)]
Merge branch 'Applications/19.08'

6 years agoFix dir change when show hidden terminal panel with running program in it
Andrey Yashkin [Sun, 28 Jul 2019 16:26:36 +0000 (18:26 +0200)]
Fix dir change when show hidden terminal panel with running program in it

Summary: Terminal panel doesn't change its working directory, while any procces is running in it. However, if you hide it and show again the program will get a string with a //cd path// command.

Test Plan:
1. Open dolphin
2. Press F4
3. Start any process like gnu nano
4. Press F4 two more times

Reviewers: #dolphin

Subscribers: anthonyfieroni, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22422

6 years agoFix name grouping feature for cyrillic names
Andrey Yashkin [Sun, 28 Jul 2019 15:06:12 +0000 (17:06 +0200)]
Fix name grouping feature for cyrillic names

Summary:
All files and folders with cyrillic names are placed in latin 'A' group. This patch fixes this issue.

BUG: 406867
FIXED-IN: 19.11.80

Test Plan:
Make grouping by name in the dir with cyrillic files or dirs in it.
See screenshots below.
Before {F6985465}
After {F6985459}

Reviewers: #dolphin, ngraham, cfeck, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: hein, cfeck, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22303

6 years agoFix an issue with a new tab focus
Andrey Yashkin [Sun, 28 Jul 2019 14:16:49 +0000 (16:16 +0200)]
Fix an issue with a new tab focus

Summary:
When opening a new tab in the background and switching to that tab the focus is set on the location bar instead of the files view. If you switch back to the original tab and then to the new tab again focus will be set on the files view. The problem is caused by creation of //DolphinTabPage// in an active state which leads to skipping by //return// in //DolphinView::setActive(bool active)// without setting the focus on the view. This patch fixes this defect.

BUG: 407604
FIXED-IN: 19.11.80

Test Plan:
1. Open a new tab in the background
2. Switch to the new tab
3. Check current focus widget by the up/down arrows on the keyboard with and without changes.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: ngraham

Subscribers: anthonyfieroni, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22386

6 years agoMerge branch 'Applications/19.08'
Alexander Potashev [Sun, 21 Jul 2019 14:53:36 +0000 (17:53 +0300)]
Merge branch 'Applications/19.08'

6 years agoservicemenuinstaller: Fix placeholders in i18n string
Alexander Potashev [Sat, 20 Jul 2019 20:56:35 +0000 (23:56 +0300)]
servicemenuinstaller: Fix placeholders in i18n string

Test Plan: it compiles

Reviewers: #dolphin, aacid

Reviewed By: aacid

Subscribers: aacid, ltoscano, kde-i18n-doc, kfm-devel, #localization

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22597

6 years agoFix rubber band not going away after right-click
Jackson Reed McNeill [Wed, 17 Jul 2019 19:35:51 +0000 (21:35 +0200)]
Fix rubber band not going away after right-click

Summary: Fix rubber band not going away after right-click in the folder view

Test Plan:
Hold left click
Drag to make rubber band
Right click

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21590

6 years agoMerge branch 'Applications/19.08'
Alexander Potashev [Tue, 16 Jul 2019 12:06:34 +0000 (15:06 +0300)]
Merge branch 'Applications/19.08'

6 years agoservicemenuinstaller: Run installation scripts with cwd in their parent directories
Alexander Potashev [Mon, 15 Jul 2019 19:17:03 +0000 (22:17 +0300)]
servicemenuinstaller: Run installation scripts with cwd in their parent directories

Summary:
Otherwise, if cwd is set to the unpacked dir root, some service menus
fail to install.

Test Plan:
 - Successfully Installed and uninstalled the "Color Folder" service menu from "Configure Dolphin..." -> service menus -> KNewStuff.
 - ./test_run.rb still passes all its tests.

Reviewers: elvisangelaccio, sitter

Reviewed By: sitter

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22466

6 years agoservicemenuinstaller: Use QMimeDatabase instead of running xdg-mime
Alexander Potashev [Sun, 14 Jul 2019 23:21:35 +0000 (02:21 +0300)]
servicemenuinstaller: Use QMimeDatabase instead of running xdg-mime

Test Plan: ./test_run.rb still passes all tests.

Reviewers: elvisangelaccio, sitter, ngraham

Reviewed By: elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22465

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.11.70.
Albert Astals Cid [Mon, 15 Jul 2019 19:39:44 +0000 (21:39 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.11.70.

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.07.80.
Albert Astals Cid [Mon, 15 Jul 2019 19:17:55 +0000 (21:17 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.07.80.

6 years agoFix a regression preventing previews to be resized
Méven Car [Mon, 15 Jul 2019 14:19:09 +0000 (16:19 +0200)]
Fix a regression preventing previews to be resized

Summary: e6c1b97d67f6b6c6d4ad935db14241b041b3fca4 introduced a regression preventing previews to be properly resized.

Test Plan: Manual : resizing the information panel and the window

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22473

6 years agoi18n: drop servicemenuinstaller messages from main po file
Pino Toscano [Mon, 15 Jul 2019 06:08:23 +0000 (08:08 +0200)]
i18n: drop servicemenuinstaller messages from main po file

They are extracted in an own pot file, so no need to duplicate them in
dolphin.pot

6 years agoRewrite servicemenu helper utility in C++
Alexander Potashev [Sun, 14 Jul 2019 21:14:51 +0000 (00:14 +0300)]
Rewrite servicemenu helper utility in C++

Summary:
     - Also support MIME type "application/x-compressed-tar".
     - Update tests in Ruby, remove SimpleCov.

BUG: 399229

Test Plan: Ruby tests passed

Reviewers: sitter, elvisangelaccio, ngraham

Reviewed By: elvisangelaccio

Subscribers: cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21878

6 years agoUse more human-readable sort order descriptions
Nicolas Fella [Sat, 22 Jun 2019 15:52:35 +0000 (17:52 +0200)]
Use more human-readable sort order descriptions

Summary:
Anecdotal evidence shows that ascending/descending regularly takes people longer to process than necessary. This patch implements more human-friendly sort order descriptions, in particular:

A-Z/Z-A for text
Newest first/oldest-first for time
Lowest first/highest first for rating
smallest first/largest first for sizes

If there is no string for a particular role defined it will fall back to Ascending/Descending.

I'm aware that not every language uses A-Z. In this case the translator can pick any string that represents the concept of text sorting

Test Plan: Sort view in various ways

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22006

6 years agoAdd docs about the new 'Open new folders in tabs' option
Yuri Chornoivan [Wed, 26 Jun 2019 07:48:17 +0000 (10:48 +0300)]
Add docs about the new 'Open new folders in tabs' option

6 years agoFix crash without baloo
Kai Uwe Broulik [Tue, 25 Jun 2019 13:26:59 +0000 (15:26 +0200)]
Fix crash without baloo

6 years agoFix minor typos
Yuri Chornoivan [Mon, 24 Jun 2019 05:40:39 +0000 (08:40 +0300)]
Fix minor typos

6 years agoAdd "What's This?" to nearly everything in the main window
Felix Ernst [Sun, 23 Jun 2019 19:19:49 +0000 (21:19 +0200)]
Add "What's This?" to nearly everything in the main window

Summary:
This commit adds "What's This?" help to nearly everything in the
Dolphin main window (panels, views, buttons, ...). It adds the "?"
to the title bar so this help can easily be called.

For links in those help texts to work the WhatsThisClickedEvents are
handled in the main window class. This doesn't work for menus because
events from them aren't forwarded to the main window for some
reason so EventFilters are installed for the Control button menus.

Modifying the "Help" menu of KXmlGui is deprecated so no EventFilter
can be installed in the menubar. Therefore help texts without links
are provided for the menubar.

Test Plan:
Check if the event handling might make any problems.
Check for any big mistakes in the help messages.

Reviewers: #dolphin, elvisangelaccio

Subscribers: broulik, elvisangelaccio, yurchor, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D20471

6 years agoAllow dolphin to auto-play previewed media file, click on preview to play/pause video...
Méven Car [Sun, 14 Apr 2019 14:54:54 +0000 (16:54 +0200)]
Allow dolphin to auto-play previewed media file, click on preview to play/pause videos or audio

Summary:
It is based on D19844.

I did my best to avoid glitches hence the amount of code touched.

Retry after @pekkah D7539
Moved the setting to the information panel context menu, no more timer

Settings screenshot :
{F6700220}

This would mach the same feature in the open/save dialog (although not equivalent)
{F6696456}

FEATURE: 378613
FIXED-IN: 19.08.0
GUI: New information panel context menu option

Test Plan:
Without auto play
  - in dolphin with the information panel opened, and the auto media play feature is disabled (right on the information panel)
  - hover over media files
  - the behavior is the same as before the patch

With auto play
  - in dolphin with the information panel opened, and the auto media play feature is enabled
  - hover over media files
  - media is played automatically
  - hover over another media file, the new media is previewed

Use audio or video file as media.

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ngraham, broulik, kfm-devel, pekkah

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19782

6 years agoFix tests relating to the removal of the Root Place in D15739
Méven Car [Tue, 18 Jun 2019 11:08:00 +0000 (13:08 +0200)]
Fix tests relating to the removal of the Root Place in D15739

Summary: See D15739

Test Plan: ctest

Reviewers: elvisangelaccio, ngraham

Reviewed By: elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21789

6 years agoAdding option to open externally called folder in a new tab
Alexander Saoutkin [Sun, 23 Jun 2019 11:22:41 +0000 (13:22 +0200)]
Adding option to open externally called folder in a new tab

Summary:
Adds an option to open externally called folder in a new tab.

By default this option is enabled

Test Plan:
If option selected:
1. All valid arguments passed to Dolphin should be opened in tabs of an instance(s) (if it exists). Duplicate tabs just change activation to current tab.

If option not selected:
1. All calls to Dolphin result in a new instance being opened

This option does not require Dolphin to be restarted to take effect.

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: broulik, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21736

6 years agoImprove README documentation
Nate Graham [Sun, 23 Jun 2019 10:27:06 +0000 (12:27 +0200)]
Improve README documentation

Summary:
Previously, README contained nothing but a link to userbase. A separate HACKING.md
file had non-technical developer documentation, but nothing technical to guide
people in the right direction.

This patch consolidates all information in the README file and adds technical
information about how to develop Dolphin.

BUG: 408967

Test Plan: Just read it :)

Reviewers: #documentation, #dolphin, yurchor

Reviewed By: #documentation, yurchor

Subscribers: yurchor, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22025

6 years agoOpen new instance of Dolphin if no URLs are given
Alexander Saoutkin [Sat, 22 Jun 2019 13:44:11 +0000 (15:44 +0200)]
Open new instance of Dolphin if no URLs are given

Summary:
BUG: 408387
BUG: 408244
FIXED-IN: 19.08.0

Currently Dolphin only opens a new instance of itself in the following two scenarios:
1. No other Dolphin instances ( D21666 deals with not matching daemonized instances) are currently running.
2. A new instance is explicitly asked for via:  `dolphin --new-window`

A third scenario is needed to fix this bug:
3. If no URLs are passed in as arguments then open a new instance.

This patch adds this third scenario.

Test Plan:
STEPS TO REPRODUCE
1. Open Dolphin
2. Right-click on Dolphin's Task Manager Entry and click "Start New Instance"
3. A new instance is created.

As my system stuff is not built on master I am unable to replicate the bug (and can't confirm whether this fixes it), hence I'll rely on @ngraham to confirm whether this patch fixes the issue.

Reviewers: ngraham, elvisangelaccio

Reviewed By: ngraham, elvisangelaccio

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21691

6 years agoFix ECM version comparison
Elvis Angelaccio [Sun, 16 Jun 2019 10:02:42 +0000 (12:02 +0200)]
Fix ECM version comparison

CCMAIL: montel@kde.org

6 years agoInstall in new logging directory when we use kf5 5.59.0
Laurent Montel [Thu, 13 Jun 2019 05:07:25 +0000 (07:07 +0200)]
Install in new logging directory when we use kf5 5.59.0

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 11 Jun 2019 03:13:47 +0000 (05:13 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoDo not match daemonized dolphin instances
Elvis Angelaccio [Mon, 10 Jun 2019 20:13:12 +0000 (22:13 +0200)]
Do not match daemonized dolphin instances

Summary:
`dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path,
because it doesn't have any DolphinMainWindow.

Checking if the QDBusInterface is valid is not enough, we also need to look for dbus errors.

BUG: 408244

Test Plan:
1. Make sure there is a `dolphin --deamon` process around.
2. Start another dolphin process.

Reviewers: broulik, ngraham, feverfew

Reviewed By: feverfew

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21666

6 years agoFix container detaching
Elvis Angelaccio [Sat, 8 Jun 2019 11:11:47 +0000 (13:11 +0200)]
Fix container detaching

6 years agoMake Bookmarks item work properly as a toolbar item
Nate Graham [Fri, 7 Jun 2019 15:50:53 +0000 (09:50 -0600)]
Make Bookmarks item work properly as a toolbar item
- Make its menu open on click, not click-and-hold
- Give it a proper icon

BUG: 408346
FIXED-IN: 19.08.0

6 years ago[DolphinContextMenu] Restore check for whether place already exists
Kai Uwe Broulik [Fri, 7 Jun 2019 08:37:06 +0000 (10:37 +0200)]
[DolphinContextMenu] Restore check for whether place already exists

Now that we have a places singleton it adds no real overhead.

Differential Revision: https://phabricator.kde.org/D21600

6 years agoScroll when pressing PageUp/PageDown
Tranter Madi [Tue, 4 Jun 2019 08:49:39 +0000 (15:49 +0700)]
Scroll when pressing PageUp/PageDown

Summary:
Add `PageUp/PageDown` to the `navigationPressed` variable.
Remove the `m_view->firstVisibleIndex()` and `m_view->lastVisibleIndex()` tests because sometimes it does not work correctly.

BUG: 407118

Test Plan:
Press PageUp/PageDOwn: it scrolls
Press Up/DOwn: it always scrolls

Reviewers: #dolphin, Zren, cfeck, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21573

6 years agoMerge branch 'Applications/19.04'
Kai Uwe Broulik [Tue, 4 Jun 2019 06:59:02 +0000 (08:59 +0200)]
Merge branch 'Applications/19.04'

6 years ago[Places Panel] Pass iconName to KFilePlaceEditDialog
Kai Uwe Broulik [Tue, 4 Jun 2019 06:58:28 +0000 (08:58 +0200)]
[Places Panel] Pass iconName to KFilePlaceEditDialog

Ensures that editing an entry with a custom icon doesn't have its icon discarded.

Differential Revision: https://phabricator.kde.org/D21558

6 years agoTighter match own service when trying to find suitable window to open path in.
Thomas Posch [Mon, 3 Jun 2019 19:52:10 +0000 (21:52 +0200)]
Tighter match own service when trying to find suitable window to open path in.

Summary:
Current implementation matches org.kde.dolphin-.*PID while trying to exclude itself from the list of running instances.
With this fix applied only org.kde.dolphin-PID is matched.

Test Plan: Open dolphin twice. Observe only one window.

Reviewers: feverfew, #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21547

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.04.2.
Christoph Feck [Fri, 31 May 2019 10:26:13 +0000 (12:26 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.04.2.

6 years agoOpen externally called files/directories in new tabs
Alexander Saoutkin [Thu, 30 May 2019 20:22:43 +0000 (22:22 +0200)]
Open externally called files/directories in new tabs

Summary:
FEATURE: 183429
FIXED-IN: 19.08.0
GUI: new cli argument --new-window

Externally called files/directories are opened in a a new tab of an instance of Dolphin that already exists. If any of the given URIs are already open in a tab, then those tabs are activated instead of a new tab being opened.  If there is no instance then the files/directories are opened in a new window. The newly opened file/directory has its tab activated, and consequently, the window is also activated.

When the user clicks "Open In New Window" or "Detach Tab", the files/directories are opened in a new window.

Test Plan:
[Manual]
Before testing, set the default file manager in system settings as the newly built Dolphin executable.
One must also include the new dolphin executable in the $PATH, otherwise some functions will attempt to open the system dolphin instead of the new one.

Furthermore, running two different versions of Dolphin (in particular, where one does not have this patch included) can result in bugs appearing, in particular, new tabs not opening as old instances will not recognise the DBus commands sent to it. However, I see no reason why a user will have two different versions of Dolphin (apart from people like us :D).

Open directories with the help of auxillary programs (i.e. a browser). The files/directories should appear in a new window if an instance does not exist. If an existence already exists, then a new tab should be opened and activated in that instance and the window activated.
Use QDBusViewer to open folders/items by calling the ShowFolders/ShowItems methods in org.freedesktop.FileManager1 of the Dolphin instance.
When a user chooses to "Open In New Window"/"Detach Tab" then the files/directories should be opened in a new window.

Reviewers: #dolphin, elvisangelaccio

Subscribers: zzag, dfaure, fvogt, fikrim, magar, fbg13, davidedmundson, kwin, ngraham, elvisangelaccio, anthonyfieroni, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D16648

6 years agohandle maps with multiple or single entries from Baloo
Alexander Stippich [Tue, 21 May 2019 18:27:29 +0000 (20:27 +0200)]
handle maps with multiple or single entries from Baloo

Summary:
Handle maps which may contain multiple entries with the same key.
Bumps frameworks to 5.58. Equivalent to D20739.

Reviewers: #dolphin, elvisangelaccio, bruns

Reviewed By: #dolphin, elvisangelaccio, bruns

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21157

6 years agoWhen filter bar is focused, switch to view when tab key is pressed
Nate Graham [Sun, 26 May 2019 03:32:13 +0000 (21:32 -0600)]
When filter bar is focused, switch to view when tab key is pressed

Summary:
Various people have requested that the tab key move keyboard focus from the filter bar's
text edit field to the main view. It already does this when the Enter and return keys
are pressed, but apparently this is not very intuitive and people expect Tab to work too.

This patch makes that behavior possible by moving the Lock button to the left of the
text edit field, and re-arranging the code so that the filter bar is initialized first.
This works because Qt assigns tab ordering by default according to the order of widget
construction. So if we simply construct the main view right after the filter bar, then
the tab ordering is set up this way automatically.

BUG: 403379
BUG: 403356
FIXED-IN: 19.08.0

Test Plan:
1. Activate Filter bar
2. Hit Tab key
3. View has become focused
4. Play around in Dolphin for a while and notice no regressions or crashes

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21177

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 24 May 2019 00:40:13 +0000 (02:40 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 23 May 2019 05:22:07 +0000 (07:22 +0200)]
GIT_SILENT made messages (after extraction)