]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
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)

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 22 May 2019 03:14:39 +0000 (05:14 +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 agoAdd Documents shortcut detection
Andrew Crouthamel [Mon, 20 May 2019 22:20:28 +0000 (16:20 -0600)]
Add Documents shortcut detection

Summary:
This adds support for Documents detection when included as a default
as implemented in D16852. This is a work-in-progress and currently
does not succeed.

Assistance is welcome.

Test Plan: Run ctest within the dolphin build directory.

Reviewers: #dolphin

Subscribers: elvisangelaccio, kfm-devel, ngraham

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.04'
Nate Graham [Mon, 20 May 2019 13:15:05 +0000 (07:15 -0600)]
Merge branch 'Applications/19.04'

6 years agoElide tab titles left so key information at the end of the string doesn't get cut off
Nate Graham [Fri, 19 Apr 2019 16:24:52 +0000 (10:24 -0600)]
Elide tab titles left so key information at the end of the string doesn't get cut off

Summary:
Tab Titles currently elide right. Generally the more useful information is at the right
side of the string--even more so when full paths are being used.

BUG: 406569
FIXED-IN: 19.04.2

Test Plan:
- No change when tab titles don't get elided
- When tabs show the full path and titles are elided, they're now useful: {F6782447}
- When tabs don't show the full path and are elided, they're elided on the other side which seems maybe a tiny bit better, but at least no worse: {F6782448}

Reviewers: #dolphin, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: ndavis, elvisangelaccio, kneckermcknacksack, filipf, kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 15 May 2019 05:56:38 +0000 (07:56 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 15 May 2019 00:39:28 +0000 (02:39 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoSummary: Fixes crash when hiding devices
David Hallas [Mon, 22 Apr 2019 17:40:16 +0000 (19:40 +0200)]
Summary: Fixes crash when hiding devices

Summary:
Fixes crash when hiding devices. The crash is caused by
KStandardItem::setDataValue which calls the
KStandardItemModel::onItemChanged function, and that function will
delete the KStandardItem if the data value being set is the hidden
attribute being set to true. To fix this KStandardItem now derives
QObject so that we can use deleteLater.

Test Plan:
Right click a device in the places panel and select hide
Right click the places panel and select show hidden
Right click the hidden device and select show
Right click the same device and select hide

BUG: 403064

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoAdd Bookmark Handling
David Hallas [Wed, 20 Mar 2019 19:29:20 +0000 (20:29 +0100)]
Add Bookmark Handling

Summary:
Add Bookmark Handling. Adds complete bookmark support as provided by
other KDE applications like Konsole and Konqueror. This allows you to
bookmark individual folders, create bookmark folders and open them.

Test Plan:
Go -> Bookmark -> Add Bookmark
Go -> Bookmark -> [Open the bookmark you selected]

FEATURE: 171366

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ognarb, meven, loh.tar, cfeck, hein, kfm-devel

Tags: #dolphin

Maniphest Tasks: T5408

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

6 years agoFix stale comment
Elvis Angelaccio [Sun, 12 May 2019 16:18:36 +0000 (18:18 +0200)]
Fix stale comment

GIT_SILENT

6 years agoFix indentation
Elvis Angelaccio [Sun, 12 May 2019 11:09:39 +0000 (13:09 +0200)]
Fix indentation

GIT_SILENT

6 years ago[Inline Rename] Move cursor to correct position on pressing Home and End
Chinmoy Ranjan Pradhan [Sun, 5 May 2019 13:00:19 +0000 (18:30 +0530)]
[Inline Rename] Move cursor to correct position on pressing Home and End

Summary:
When pressing home or end key on a wrapped file name the cursor should move to beginning or end of the whole file name
instead of the last line (which is the default behaviour of any textedit widget).

BUG: 363179

Reviewers: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoservices/test: Fix test
Alexander Potashev [Sat, 4 May 2019 04:00:30 +0000 (07:00 +0300)]
services/test: Fix test

Reviewers: #dolphin, elvisangelaccio, sitter

Reviewed By: sitter

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoGet rid of ugly static_cast usages in connect() calls
Elvis Angelaccio [Sun, 5 May 2019 15:20:44 +0000 (17:20 +0200)]
Get rid of ugly static_cast usages in connect() calls

6 years ago[PlacesItemModelTest] Rename variable
Elvis Angelaccio [Sun, 5 May 2019 15:05:46 +0000 (17:05 +0200)]
[PlacesItemModelTest] Rename variable

This variable is not the expected size of the groups list, but it's the
expected index of the 'Remote' group in the model.

6 years agoFix formatting in CMakeLists.txt
Alexander Potashev [Sat, 4 May 2019 03:59:30 +0000 (06:59 +0300)]
Fix formatting in CMakeLists.txt

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sun, 5 May 2019 15:02:59 +0000 (17:02 +0200)]
Merge branch 'Applications/19.04'

6 years ago[PlacesItemModelTest] Ignore user tag places
Elvis Angelaccio [Sun, 5 May 2019 14:52:16 +0000 (16:52 +0200)]
[PlacesItemModelTest] Ignore user tag places

Instead of listing the user tags (as tried in D21017), the test should not have
access to the user's baloo DB in the first place.

To do so, we use a QTemporaryDir as $HOME for the test process and for
its ioslave children (by setting KDE_FORK_SLAVES=yes).

While at it, drop the no-op removeTestUserData() function.

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sun, 5 May 2019 14:02:46 +0000 (16:02 +0200)]
Merge branch 'Applications/19.04'

6 years agoTry again to fix PlacesItemModelTest::testDefaultViewProperties()
Elvis Angelaccio [Sun, 5 May 2019 13:54:12 +0000 (15:54 +0200)]
Try again to fix PlacesItemModelTest::testDefaultViewProperties()

Commit bff373d598c031cb1 was not enough because the model takes into
account the global view properties setting (in PlacesItemModel::initializeDefaultViewProperties()).

This means we need to disable the setting before init() runs.

6 years agoFix create_symlink path to DESTDIR instead of root file system
Arfrever Frehtes Taifersar Arahesis [Sat, 4 May 2019 11:26:00 +0000 (13:26 +0200)]
Fix create_symlink path to DESTDIR instead of root file system

Test Plan: Builds fine again in a sandbox, with the symlink properly installed.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: davidedmundson, elvisangelaccio, kfm-devel, ngraham

Tags: #dolphin

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

6 years agoFix wrong apidox
Elvis Angelaccio [Sat, 4 May 2019 11:24:16 +0000 (13:24 +0200)]
Fix wrong apidox

There is no KStandardItemView class in dolphin. This apidox has been
wrong since the beginning (see commit ae4d11d918938fd9087f2035dac).

GIT_SILENT

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sat, 4 May 2019 09:59:56 +0000 (11:59 +0200)]
Merge branch 'Applications/19.04'

6 years agoFix dolphin cannot be added as favourite in GNOME
Elvis Angelaccio [Sat, 4 May 2019 09:49:15 +0000 (11:49 +0200)]
Fix dolphin cannot be added as favourite in GNOME

The StartupWMClass entry is needed because gnome-shell gets confused by
the mismatch between the desktop file basename ('org.kde.dolphin') and
the WM_CLASS window property ('dolphin').

BUG: 407198
FIXED-IN: 19.04.1

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.04.1.
Christoph Feck [Thu, 2 May 2019 10:45:07 +0000 (12:45 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.04.1.

6 years ago[InformationPanel] Use the new inline configuration mode
Stefan Brüns [Sun, 14 Apr 2019 00:44:01 +0000 (02:44 +0200)]
[InformationPanel] Use the new inline configuration mode

Summary:
The current external configuration dialog has some issues:

- its layout is suboptimal, as its initial size is typically to small
- it is quite disassociated with the actual widget it configures, properties
  have a different order, and the property names can be quite abstract
  without the corresponding value.

Doing the visibility selection inline typically avoids the sizing problem,
as the containing application (dolphin) is often vertically maximized.
The selection becomes more obvious, as the item order is kept,
and the values are shown.

Depends on D20524

CCBUG: 389571

Reviewers: #dolphin, #baloo, #frameworks, ngraham, astippich, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, meven, kfm-devel

Tags: #dolphin

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

6 years agoUse placeholder for search action
Carl Schwan [Thu, 14 Mar 2019 19:53:49 +0000 (20:53 +0100)]
Use placeholder for search action

Summary:
See https://hig.kde.org/style/writing/placeholder.html

Screenshot:

Old: {F6691712}
New: {F6698685}

Test Plan: Compile and run

Reviewers: #dolphin, #vdg, ngraham, elvisangelaccio

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: GB_2, kde-doc-english, elvisangelaccio, ngraham, yurchor, kfm-devel

Tags: #dolphin, #documentation

Maniphest Tasks: T10258

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

6 years ago[InformationPanel] Remove obsolete intermediate wrapper widget/layout
Stefan Brüns [Mon, 22 Apr 2019 11:42:34 +0000 (13:42 +0200)]
[InformationPanel] Remove obsolete intermediate wrapper widget/layout

The Baloo::MetaDataWidget is now able to stretch in a meaningful way
by itself, remove the wrapper.

Summary: Depends on D20667

Reviewers: #dolphin, #baloo, #frameworks, ngraham, astippich, elvisangelaccio

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

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoMore coding style fixes
Elvis Angelaccio [Sat, 20 Apr 2019 14:28:38 +0000 (16:28 +0200)]
More coding style fixes

GIT_SILENT

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sat, 20 Apr 2019 14:26:55 +0000 (16:26 +0200)]
Merge branch 'Applications/19.04'

6 years agoFix missing update of file name label in information panel without preview
Stefan Brüns [Thu, 18 Apr 2019 12:37:09 +0000 (14:37 +0200)]
Fix missing update of file name label in information panel without preview

Summary:
The file name label was only updated when the preview was shown, after
the function was moved into a conditional section. This is a regression
caused by commit 405aa4878f75 ("[InformationPanel] Hide the video when the
preview is disabled, avoid computing the preview when it is disabled").

Test Plan:
Hide the preview in dolphin's information panel
Hover different files, the name label reflects the hovered file again

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: meven

Subscribers: kfm-devel

Tags: #dolphin

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

6 years ago[InformationPanelContent] Fix coding style
Elvis Angelaccio [Sun, 14 Apr 2019 20:47:47 +0000 (22:47 +0200)]
[InformationPanelContent] Fix coding style

GIT_SILENT