Commit graph

6802 commits

Author SHA1 Message Date
Toni Asensi Esteve 3bde6ba13c Delete some items that were intended to be deleted. Avoid trying to delete items that don't exist
When deleting items of a list, follow a sequence that ensures that the item
that is going to be deleted exists.

Revision: https://invent.kde.org/system/dolphin/-/merge_requests/240
2021-07-17 19:50:52 +02:00
Nate Graham 2c7a1f4b4c Merge branch 'release/21.08' 2021-07-16 23:08:18 -04:00
Jordan Bucklin 3fe971e174 Fix placeholder label text within an empty folder in Trash
An empty folder within the Trash bin previously had the placeholder
label "Trash is empty". This label should only appear in top-most
Trash/ url, and "Folder is empty" otherwise.

BUG: 439952
2021-07-16 19:39:27 -07:00
Méven Car 6f632283d0 Allow to have HiDpi previews
BUG: 401170
2021-07-16 06:53:32 +00:00
Elvis Angelaccio b26b1d491e Merge branch 'release/21.08' 2021-07-13 21:50:41 +02:00
Christian Muehlhaeuser baaf0c29b8 Ensure stable sort order when sorting by size
Folders with equal size caused the sort operation to become unstable,
as the result of lessThan was non-deterministic.

We need the fallback mechanisms at the bottom of the function to
resovle the situation and provide a stable sort order.

This also fixes expanding the contents of a folder into the wrong
parent.

BUG: 433247
FIXED-IN: 21.08
2021-07-13 21:48:41 +02:00
Alex Richardson 3fdd93db97 Don't exit immediately if DBus isn't running
I am trying to run Dolphin on a minimal FreeBSD CHERI-RISC-V QEMU
instance and I haven't got DBus running. Without this change, KDBusService
causes dolphin to exit immediately since the default behaviour is to
exit if it can't connect to DBus.
2021-07-10 20:18:28 +00:00
Alex Richardson 531de16cd0 Avoid crashing on startup if DBus isn't running
I am trying to run Dolphin on a minimal FreeBSD CHERI-RISC-V QEMU
instance and I haven't got DBus running. Without this change, I get
crashes because QDBusConnection::sessionBus().interface() returns NULL
if DBus isn't running.
2021-07-10 20:18:28 +00:00
Albert Astals Cid d284e22f87 GIT_SILENT Upgrade release service version to 21.11.70. 2021-07-10 19:59:01 +02:00
Albert Astals Cid 7e0d3e04ce GIT_SILENT Upgrade release service version to 21.07.80. 2021-07-10 18:40:59 +02:00
Alex Richardson 997977c67a Make the KDocTools dependency optional
I am cross-compiling dolphin and haven't build KDocTools. Since it's only
needed for the handbook we can make the dependency optional.
2021-07-09 09:19:05 +01:00
l10n daemon script c5fdcc41de GIT_SILENT made messages (after extraction) 2021-07-09 00:19:18 +00:00
l10n daemon script 93151bd392 GIT_SILENT made messages (after extraction) 2021-07-07 00:20:10 +00:00
Heiko Becker fd26898a36 GIT_SILENT Update Appstream for new release
(cherry picked from commit f8838005d7)
2021-07-05 20:59:45 +02:00
Alexander Lohnau 30299e00b1 Reuse KFileItemActions instance during lifetime of dolphin
With https://invent.kde.org/frameworks/kio/-/merge_requests/411 the
plugin instances can be reused during the lifetime of the
KFileItemActions object. This improves performance and also allows
the plugins to emit errors, even if they run async.
2021-07-04 20:33:48 +00:00
Alexander Lohnau dd7f3fb783 contextmenu: Listen to new error signal from KFileItemActions
Task: https://phabricator.kde.org/T12164
2021-07-04 20:33:48 +00:00
Elvis Angelaccio 8ef8e03e21 Fix regex porting regression
QAbstractItemModel::match() under the hood uses QRegExp::exactMatch(),
so with QRegularExpression we need to use anchoredPattern() on the pattern.

Regression spotted by a failing dolphinmainwindowtest.
2021-07-04 22:15:17 +02:00
David Hurka fb210d6ec4 Port to new KActionMenu popup mode API
Use KActionMenu and KToolBarPopupAction::setPopupMode()
methods instead of setDelayed() and setStickyMenu().
Are available since KF 5.77 and KF 5.78 respectively,
which is already required by Dolphin.
2021-07-04 15:26:18 +02:00
Elvis Angelaccio edd0034a5e Port away from deprecated enum
We already require Qt 5.15
2021-07-04 13:35:26 +02:00
Elvis Angelaccio 0d71ac9ad1 Drop unused list
Spotted by clazy.

GIT_SILENT
2021-07-04 13:35:26 +02:00
David Lerch aba4462e02 Add support for hover sequence thumbnails (via ThumbSequenceCreator)
This shows a slideshow of thumbs when the user hovers a file item.
2021-07-04 10:24:07 +00:00
Méven Car 8048e6ed1b InformationPanel ensure to have a showUrl when no items are selected 2021-07-04 10:04:00 +00:00
Elvis Angelaccio 7d6aaf4c07 Drop unused include
GIT_SILENT
2021-07-04 12:02:30 +02:00
Nicolas Fella 32ebe96eca Port konsolepart loading to use KPluginLoader directly
No need to go via KService
2021-07-04 09:13:01 +00:00
l10n daemon script 7f562433c0 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"
2021-07-04 01:17:03 +00:00
Nicolas Fella 902e8ee07e Remove unused includes 2021-07-03 20:19:33 +02:00
Alexander Lohnau 67e1a465e1
Use KNewStuff3 as group key in knsrc file
The other key was used during the transition from KDE4->KDE5 and makes no difference when the config file is read
2021-07-03 17:34:45 +02:00
Alexander Lohnau 523321fbc7
Remove deprecated and defunct KNewStuff properties 2021-07-03 17:25:40 +02:00
Alexander Lohnau cc962cae49
Remove go action for settings kio slave
The settings kio slave is about to be removed, see
https://invent.kde.org/network/kio-extras/-/merge_requests/107.
2021-06-30 15:38:53 +02:00
Mufeed Ali 152a7b4fcb Show a "Loading..." placeholder text
Since a placeholder text is being used when the folder is empty, it
also makes sense to show a similar placeholder text when the view is
still loading, especially now that the status bar which previously
contained a loading indicator now disappears when a folder is loading.
2021-06-29 13:52:57 +00:00
Méven Car a3559a19db KFileItemModel: Allow to group files and folder together
When folders size is available and unless sort dir first is set, folders
and files can be grouped together in the regular size groups.

Without this you can end up with multiple groups being added each time a
folder size alternates with a file size.

Relates to d520b417c97bdbdfece2a497dac8b5384a80b597
2021-06-27 09:19:43 +00:00
Ömer Fadıl Usta 216068bd7c Update CMake , Qt 2021-06-25 15:57:07 +00:00
Felix Ernst 823e99fe78 Merge branch 'release/21.04' addendum
This should have belonged to my previous merge
480b3067d2 but somehow I managed to
miss this one line.

It was written by Derek Christ as part of
dc3beae3ab.
2021-06-22 14:52:35 +02:00
Felix Ernst 480b3067d2 Merge branch 'release/21.04' 2021-06-22 11:55:53 +02:00
Derek Christ dc3beae3ab Fix shift-action modifier in context menu
Before this patch, the shift-action modifier in context menus did not
work when a sub-context menu is open, that does not have the main
context menu as its parent.
The new fix installs an event filter on QApplication whenever a new
context menu is opened to make the context menu aware of shift-presses
even when a sub-context menu is in focus.

BUG: 425997
FIXED-IN: 21.04
2021-06-22 08:53:55 +00:00
Ahmad Samir 0a0d0c48ee Fix X-DocPath entries
This way they're more correct, which means they can work with KHelpCenter
and when falling back to opening the relevant page at docs.kde.org in any
web browser.

See https://invent.kde.org/graphics/okular/-/merge_requests/441 for more
details.

(cherry picked from commit 5e79f27aec)
2021-06-18 17:19:12 +02:00
Ahmad Samir 5e79f27aec Fix X-DocPath entries
This way they're more correct, which means they can work with KHelpCenter
and when falling back to opening the relevant page at docs.kde.org in any
web browser.

See https://invent.kde.org/graphics/okular/-/merge_requests/441 for more
details.
2021-06-18 15:01:41 +00:00
l10n daemon script 19405fc3c7 GIT_SILENT made messages (after extraction) 2021-06-18 00:20:33 +00:00
l10n daemon script f8fccec14e GIT_SILENT made messages (after extraction) 2021-06-14 00:19:51 +00:00
l10n daemon script 699ddc3540 GIT_SILENT made messages (after extraction) 2021-06-13 00:21:39 +00:00
Felix Ernst 63d1946384 Remove the filter action from the toolbar
This commit removes the "toggle_filter" action from the default
toolbar configuration. It is not quite important enough to be
always visible on the toolbar by default. Instead it is easily
accessible through the hamburger menu and the menu bar.

The filter is only really necessary if one has a lot of items in
the current location and one knows exactly how to identify a
certain item among them by the name which probably isn't how most
people browse their files.

There are also some more advanced use-cases but advanced users
will be able to either learn the keyboard shortcut or move this
action back to the toolbar.
2021-06-12 17:08:28 +02:00
Felix Ernst 5271943a25 Add "Sort By" to the hamburger menu
People seem to use the "Sort By" menu often enough that it should
be available through the hamburger menu.

Before this change one could only sort the view through the right-
click context menu, using the details view mode or by using the
actions from the menu bar.
2021-06-08 13:48:41 +02:00
l10n daemon script c6262c97af GIT_SILENT made messages (after extraction) 2021-06-08 00:19:48 +00:00
l10n daemon script 14687479da GIT_SILENT made messages (after extraction) 2021-06-06 00:21:01 +00:00
Heiko Becker 10a0002277 GIT_SILENT Update Appstream for new release 2021-06-05 23:01:45 +02:00
Heiko Becker c8cefcffe4 GIT_SILENT Update Appstream for new release
(cherry picked from commit 10a0002277)
2021-06-05 23:01:45 +02:00
Heiko Becker 73ada10c40 GIT_SILENT Upgrade release service version to 21.04.2. 2021-06-05 22:56:34 +02:00
Marco Martin dbabe22249 Add SortOrderForUrl method to DBus interface
adds a method to ask what's the sorting strategy (column and order) for a particular Url, as Dolphin can have directory-specific sorting strategies

This makes possible for other apps that have lists of files, like Gwenview to use the same sorting when invoked from dolphin, ie opening an image

CCBUG:236059
2021-06-04 12:04:14 +00:00
l10n daemon script 9fcfbfb6e3 GIT_SILENT made messages (after extraction) 2021-06-04 00:24:27 +00:00
Albert Astals Cid f1fdbf1ec9 Tell translators to leave the ' alone 2021-06-03 22:13:27 +02:00