Commit graph

6670 commits

Author SHA1 Message Date
Tyson Tan 9e4a2c93b3 Fixed a missing bracket. 2021-09-07 18:11:06 +00:00
Tyson Tan d6ded8c28d Make "Empties Trash to create free space" translatable. 2021-09-05 14:17:30 +00:00
Eugene Popov 127e446ba0 Filter the items that have changed 2021-08-29 17:35:35 +00:00
Heiko Becker b9f320b164 GIT_SILENT Update Appstream for new release 2021-08-27 22:54:49 +02:00
Heiko Becker 0f070b22c3 GIT_SILENT Upgrade release service version to 21.08.1. 2021-08-27 22:39:28 +02:00
Jan Paul Batrina 1d125057cb FoldersPanel: Fix inline renaming
Commit 5a0da4a9c8 changed the value
for emitRoleEditingFinished() to a struct containing
the new name, but folderspanel was not updated.

BUG: 441124
2021-08-27 07:29:29 +00:00
Alexander Lohnau 542e2a214a
Fix selecting file always opening new instance
Instead try to attach to all existing instances and quit after succeeding.

BUG: 440663
2021-08-24 16:21:40 +02:00
l10n daemon script 6964140699 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-08-23 02:29:46 +00:00
l10n daemon script 943af95605 GIT_SILENT made messages (after extraction) 2021-08-23 01:54:12 +00:00
Alexander Volkov 7f4756aecb Avoid crash on start when help actions are restricted through the Kiosk system
KHelpMenu may not create some actions, so check for nullptr before
setting "What's this?" text.

(cherry picked from commit 0ac57fbe90)
2021-08-10 17:06:36 +03:00
l10n daemon script e101560f84 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-08-09 02:11:38 +00:00
l10n daemon script 9fc1e5397b GIT_SILENT made messages (after extraction) 2021-08-09 01:36:37 +00:00
Nate Graham 63e12c0cdf Revert "Show hidden files and folders last"
This reverts commit 996e430b62.

The accompanying feature to make the behavior configurable and disable
it by default was reverted in 21.08, so we need to revert the feature
itself as well and only ship it in 21.12, to avoid changing people's
setting back and forth, which is often not well-received.
2021-08-06 10:46:33 -06:00
Heiko Becker bb67def173 Revert "Configurable Show hidden files and folders last toggle"
This reverts commit 50149d6abb.

It breaks the string freeze and I don't think it can count as a bug
fix, so it breaks the feature freeze, too.

CCMAIL: zrenfire@gmail.com
2021-08-06 00:40:40 +02:00
Heiko Becker 272aa65bb5 Revert "Disable Hidden Files Last sort by default"
This reverts commit fd2203bb39.
2021-08-06 00:36:50 +02:00
Chris Holland fd2203bb39 Disable Hidden Files Last sort by default 2021-08-05 12:55:01 +00:00
Gaston Haro 50149d6abb Configurable Show hidden files and folders last toggle
CCBUG: 241227

Revision: https://phabricator.kde.org/D29115
2021-08-05 12:55:01 +00:00
Heiko Becker 2b90a13c62 GIT_SILENT Update Appstream for new release 2021-08-04 23:49:19 +02:00
Heiko Becker 1aa109ea77 GIT_SILENT Upgrade release service version to 21.08.0. 2021-08-04 23:39:33 +02:00
Jordan Bucklin f190ae1cf8 Fix how --select treats files
Previously, when passing file URLs with the --select option,
Dolphin would open the file in its corresponding application, as
well as opening an empty tab in Dolphin as if the file were a
directory. This happens specifically when trying to restore a
session.

This commit prevents Dolphin from opening a file in an application
and from opening an empty tab while passing the --select option,
and selects the URLs instead.

BUG: 436584
2021-08-01 15:54:08 -07:00
Felix Ernst 7edce5a09c Fix width issues when un-maximizing Dolphin
Before this commit un-maximizing or to be more precise instantly
changing the size of the window by a large amount could potentially
change the width of the sidebars, the viewContainers and the window
itself to unexpected/undesired widths.

This happened because the spacing calculation is triggered when the
primary ViewContainer is resized but at this point in time some of
the other widgets, especially the secondary ViewContainer and the
navigatorsWidget have generally not been resized yet. Therefore the
width and spacing calculations are based on partly updated and
partly outdated values leading to wrong results.

This commit makes it so calculation of spacings is delayed until
all widths have been updated.

Yes, spacing probably should not have the power to resize the
window but unfortunately the spacing can not be set to be less
forceful when taking space because otherwise the UrlNavigators
will take all space they can get with their
QSizePolicy::MinimumExpanding.

BUG: 430521
FIXED-IN: 21.08
2021-08-01 21:57:23 +00:00
Nate Graham ea7d4f059d Revert "Don't session-restore invalid paths"
This reverts commit c733b3aa97.

There are people who prefer the old behavior of session-restoring all
paths including the ones which are currently inaccessible. The idea is
that Dolphin is like a web browser; if a website is not currently
available, the browser tells you that instead of silently discarding the
URL and showing you the homepage. Doing this can be considered a form
of data loss.

In addition, the reason for the change was to prevent Dolphin from
showing invalid paths on launch for unmounted removable disks, but that
specific case was fixed separately by switching to ~ for any tabs/views
that were showing locations on a just-unmounted removable disk. So you
will never run into the problem if yo unmount a disk in Dolphin and then
close it.

Accordingly, let's revert the change because it causes more problems than
it resolves.

BUG: 439864
CCBUG: 427619
FIXED-IN: 21.08
2021-07-28 12:59:29 -06:00
Heiko Becker 0cdcf041cf GIT_SILENT Upgrade release service version to 21.07.90. 2021-07-27 21:29:00 +02:00
Albert Astals Cid 674a4a91da Add break; to KItemListRoleEditor::keyPressEvent cases 2021-07-26 22:08:58 +00:00
Eugene Popov 90699c2c2d [PlacesPanel] Remove horizontal scrollbar
This MR removes the horizontal scrollbar of the Places panel. For titles that don't fit in the panel, their elided versions will be used (i.e., with ...).

BUG: 301758


(cherry picked from commit deaf5916f2)
2021-07-24 03:30:51 +00: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
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
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