Commit graph

18448 commits

Author SHA1 Message Date
Dawit Alemayehu 96deec69ae Stop Konqueror from doing tons of stat calls when auto saving the current session.
REVIEW: 111048
2013-06-18 09:13:20 -04:00
l10n daemon script a2e161f751 SVN_SILENT made messages (.desktop file) 2013-06-17 06:12:58 +00:00
Frank Reininghaus 5948dc0f33 Do not rename files unexpectedly when changing the URL
This is the real fix now - note that the last commit
4de9a23364 was actually the fix for bug
320823. Somehow, I have messed up the local branches in my git
respository clone - sorry for the confusion!

BUG: 319912
FIXED-IN: 4.10.5
REVIEW: 110908
2013-06-10 21:32:31 +02:00
Frank Reininghaus 4de9a23364 Do not rename files unexpectedly when changing the URL
If the role editor loses focus, it considers the current renaming
operation finished, and tells DolphinView to rename the file. This is a
problem when changing the directory, because the URL change happens
before DolphinView receives the signal, which results in a file in the
new directory being renamed unexpectedly.

The solution is to establish the connection to the
slotRoleEditingFinished signal only when the "rename inline" editor is
opened, and disconnect it when renaming is finished or canceled or the
URL changes.

BUG: 319912
FIXED-IN: 4.10.5
REVIEW: 110908
2013-06-10 21:19:56 +02:00
l10n daemon script cc492bd5b8 SVN_SILENT made messages (.desktop file) 2013-06-05 07:26:41 +00:00
David Faure 3e5da0b813 Fix assert when restoring session (and unselecting some windows).
The KConfigGroups cannot be const, we'll call writeEntry on them.
2013-06-04 00:31:42 +02:00
Hrvoje Senjan 66691b0528 Use dialog svg instead of tooltip for folderview's popupview
Fixes popup rendering when tooltip != dialog background
Also fixed compiler warning
REVIEW: 110786
CCBUG: 320265
2013-06-03 17:18:18 +02:00
Eike Hein c4a4efae68 Don't throw away icon positions when changing the text color.
CCBUG:182712
2013-05-31 21:33:18 +02:00
Eike Hein ce159c94b6 Don't accumulate 'Open with <File Manager>' actions in the context menu. 2013-05-27 16:21:47 +02:00
Eike Hein 378c4476ab Cleanup.
Abusing the saved positions system to cope with theme changes
is no longer necessary now that updateGridSize() no longer
throws out position data.
2013-05-23 10:04:05 +02:00
Frank Reininghaus a79c3a391c Do not reset the 'isExpanded' state when an expanded folder is refreshed
If an item is moved out of an expanded folder, the model receives the
dir lister's refreshItems signal for the folder. The method
retrieveData() then updates the folder's properties. This commit makes
sure that the 'isExpanded' state is not touched by retrieveData(). A
side-effect is that the 'isExpanded' role is not initialized to 'false',
but this does not matter because trying to read a non-existing role from
the QHash<QByteArray, QVariant> yields a default-constructed QVariant,
which evaluates to 'false'.

BUG: 299675
FIXED-IN: 4.10.4
REVIEW: 110401
2013-05-22 18:14:38 +02:00
Frank Reininghaus 56cf52db90 KFileItemModelRolesUpdater: only update the size for changed folders
When using inotify, we also receive signals for modified files, even if
we only ask KDirWatch to watch the directory containing them. In that
case, we must not set the size to -1 (which means "unknown number of
items" for folders) temporarily, or we end up with an apparent file size
of 2^64 - 1 bytes.

BUG: 309740
FIXED-IN: 4.10.4
REVIEW: 110428
2013-05-22 18:09:42 +02:00
Eike Hein f86bf88770 Preserve relative positions when changing icon size in containment case.
Icon positions are preserved by scaling the top-left coordinate pair
by the difference between the old and new grid sizes, or by recreating
the same logical column/row coordinate pair in the newly-calculated
grid if the align-to-grid option is enabled.

Icons that run out of bounds (or exceed the maximum column or row)
accumulate at the relevant screen edges. There is a precedent for
this behavior in the general align-to-grid code.

The left-to-right or right-to-left flow is taken into account when
scaling.

Smarter behaviors can be imagined as an optimization (e.g. identi-
fying groups of icons along screen edges and preserving their edge
alignment regardless of overall layout flow), but this simple scaling
implementation certainly beats throwing positions away altogether.

However, positions do still get thrown away in the non-containment
case - as the regular widget is capable of handling overflow via a
scrollbar, relayouting to exploit that felt better in practice.

CCBUG:182712
2013-05-22 03:35:00 +02:00
Josef Weidendorfer accd263635 fsview: fix for bug 318706 2013-05-21 18:51:05 +02:00
Eike Hein ff68ed3e6a Preserve icon positions across theme changes. 2013-05-20 03:07:47 +02:00
Script Kiddy 48145668a8 SVN_SILENT made messages (.desktop file) 2013-05-17 14:30:44 +02:00
Eike Hein e14314d5c0 Fix non-square icon scaling when items are selected. 2013-05-16 19:56:42 +02:00
Script Kiddy ef10e25ebd SVN_SILENT made messages (.desktop file) 2013-05-14 22:27:26 +02:00
Dawit Alemayehu 67d4ea9431 Updated the midnightcommander profile to use dolphinpart instead of konq_detailedlistview.
Bug reporter says it still does not fix the crash, but for me it at least restores a working
midnight commander profile.

CCBUG: 312093
REVIEW: 110421
2013-05-14 08:34:59 -04:00
Vishesh Handa 2c68fe33ca DolphinSearchBox setReadOnly: Update if either of the parameters change
This way when another read only query is added, the internal state is
changed and the search label gets updated.

REVIEW: 110324
BUG: 315796
FIXED-IN: 4.10.4
2013-05-13 14:40:39 +05:30
David Faure 6072f58cf3 Dropping a link to the trash: don't move the full contents, just make a link
BUG: 319660
FIXED-IN: 4.10.4
2013-05-12 23:30:58 +02:00
David Faure e1428451f6 Fix crash when an xmlgui file has shortcuts for viewmode actions.
BUG: 299020
FIXED-IN: 4.10.4
2013-05-12 23:30:58 +02:00
Frank Reininghaus 958f1871f1 Fix unit test failure
The recent commit 022b564831, which added
a few source files to kitemlistcontrollertest, caused a crash in that
test - an assert was hit because now a different virtual method was
called in one place (KStandardItemListView::initializeItemListWidget()),
and qobject_cast could not cast the 'item', which is of type
KFileItemListWidget, to its base class KStandardItemListWidget. Adding
the source file kfileitemlistwidget.cpp fixes this.

CCMAIL: ps_ml@gmx.de
2013-05-12 09:34:05 +02:00
Andrea Iacovitti 854fab5bfa Restore the old behavior where the icon is removed from the status bar
when starting loading a new page.

BUG: 319675
FIXED-IN: 4.10.4
2013-05-11 18:43:27 +02:00
Frank Reininghaus 4e438670d8 Update the required kdelibs version
Since commit b8c9aa55ff, kde-baseapps
calls KFileItem::isFinalIconKnown(), which has been added to KFileItem
in KDE 4.10.2. Update the required version accordingly in the
CMakeLists.txt, such that people with an older version get a CMake
error, rather than a build failure.
2013-05-11 18:36:42 +02:00
Patrick Spendrin 022b564831 fix building tests under windows 2013-05-10 23:03:23 +02:00
Daniel Faust f12345a57f Don't try to change the icon of the "sort" action menu if it doesn't exist
BUG: 255819
FIXED-IN: 4.10.4
REVIEW: 109966
2013-05-10 22:27:22 +02:00
Vishesh Handa 24609e78f8 Dolphin Places: React to Nepomuk system changes
Reload the places panel when Nepomuk starts up and shutsdown. This way
the user does not need to restart Dolphin to see the custom searches and
places after Nepomuk switches on.

BUG: 304918
REVIEW: 110323
2013-05-07 01:36:37 +05:30
David Faure 291966486c Fix konq's unittests by ensuring it picks up khtmlpart rather than kwebkitpart.
(the tests cast to KHTMLPart)
2013-05-05 22:41:59 +02:00
David Faure 712d12c143 Move bookmarks in reverse order so that their address remains valid.
BUG: 287038
FIXED-IN: 4.10.4
2013-05-05 10:01:05 +02:00
David Faure e0c4b4478b Add unittest for DnD of multiple bookmarks
When the bookmarks are selected from bottom to top, it works.
When they are selected from top to bottom, it makes addresses invalid,
and breaks.
More debugging tomorrow.
CCBUG: 287038
2013-05-05 01:07:52 +02:00
Frank Reininghaus 2e123de94f Do not change the view URL if it is a symlink to the current directory
BUG: 302037
FIXED-IN: 4.10.3
REVIEW: 110233
2013-05-02 19:40:01 +02:00
Frank Reininghaus 572513a167 Use the same text color for selected hidden and non-hidden items
This fixes the problem that the names of selected hidden items are
unreadable with some color schemes.

BUG: 305734
FIXED-IN: 4.10.3
REVIEW: 110164
2013-05-02 19:28:10 +02:00
Frank Reininghaus cbb2a4cf47 Rename multiple files: Determine correctly if the name pattern is valid
The "Rename" button in the dialog should be enabled if and only if the
"new name" pattern is valid. This is the case if the pattern contains
exactly one sequence of '#', which will be replaced by digits.

This patch fixes the problem that
(a) A pattern that contains a single '#' is not considered valid, and
(b) A pattern without any '#' at all is not recognized as invalid.

BUG: 318942
FIXED-IN: 4.10.3
REVIEW: 110223
2013-05-02 19:23:38 +02:00
Script Kiddy 1f8499d491 SVN_SILENT made messages (.desktop file) 2013-04-26 13:28:44 +02:00
Script Kiddy 0a66a62bfd SVN_SILENT made messages (.desktop file) 2013-04-23 21:53:29 +02:00
Frank Reininghaus a16562cd55 Disable Find/Replace in the "rename inline" line edit
These actions do not work correctly because renaming is considered
finished as soon as the line edit loses focus, which happens when the
"Replace" dialog pops up.

BUG: 317772
FIXED-IN: 4.10.3
2013-04-23 19:31:08 +02:00
Frank Reininghaus f8bf257734 Do not dereference null pointer in KItemListViewAccessible
BUG: 316285
FIXED-IN: 4.10.3
2013-04-23 19:25:52 +02:00
Frank Reininghaus 34d0ad722e Comment out assertion to fix a crash when filtering in Icons/Compat View
I'm not sure yet if there is a problem somewhere else in the code. For
the time being, I think it's better to replace the assert by a TODO
comment to prevent that users find out the hard way that there is
something that we're not quite sure about.

BUG: 317827
FIXED-IN: 4.10.3
2013-04-22 21:36:57 +02:00
Frank Reininghaus 52a38ee90c Always determine icons for the visible items first
When entering a folder, KFileItemModelRolesUpdater has not yet been
informed about the visible index range by the view when it tries to
determine icons synchronously. This resulted in the problem that it
tried to determine icons for all items in random order, and some visible
icons were somtimes still unknown after the "synchronous icon loading"
timeout of 200 ms.

This commit tries to improve the situation by loading icons starting
with the first item in increasing order. This should make it less likely
that some visible items still have unknown icons after 200 ms.

BUG: 316129
FIXED-IN: 4.10.3
REVIEW: 109843
2013-04-22 21:21:31 +02:00
Script Kiddy 8877befbbd SVN_SILENT made messages (.desktop file) 2013-04-20 15:43:04 +02:00
Script Kiddy 8a299ad08c SVN_SILENT made messages (.desktop file) 2013-04-19 13:27:40 +02:00
Ignat Semenov 574cd6de32 avoid a potential stall: QComboBox::maxCount() -> QComboBox::count() 2013-04-16 22:51:01 +04:00
Christoph Feck 277ec25250 Fix missing connections from Port spin boxes
BUG: 318157
FIXED-IN: 4.10.3
2013-04-15 21:29:08 +02:00
Eike Hein ac18ec1712 Fix inadvertent losses of custom icon positions due to config handling.
The configChanged() implementation could unnecessarily schedule a
reload due to a bug in a has-this-config-element-changed comparison,
which would result in icon position losses in scenarios such as
changing the wallpaper or the workspace theme, without having touched
any sorting-related options. Further, OK'ing the config dialog could
undo the unsorted state entered by moving an icon while the dialog
was open; this is now handled by updating the sorting mode combo box
in the dialog after the icon is dropped.

The later relies on a preceding fix in kde-workspace.git to make
Applet::isUserConfiguring() work for containments if Folder View is
used as desktop containment.
2013-04-15 16:20:03 +02:00
Eike Hein f979fab6c8 Tint icon by selection color if selected, consistent with Dolphin. 2013-04-15 10:42:34 +02:00
Eike Hein 15428f1910 Default to main view sorting defaults if the main view is unsorted. 2013-04-15 10:42:25 +02:00
Aurélien Gâteau c3a7ba4e0e Fix moving image while transitioning to hover pixmap
See: http://youtu.be/OMYO0U0kSL0

REVIEW: 109960
FIXED-IN: 4.10.3
2013-04-12 16:28:52 +02:00
Ignat Semenov ed34d83fd5 no need to check pointer before deleting it 2013-04-11 16:38:56 +04:00
David Faure b8c9aa55ff Update icon if it couldn't be determined upfront (.desktop file on slow mount)
This requires an up-to-date kdelibs >= 4.10.

CCBUG: 290666
2013-03-27 15:19:09 +01:00